Part Number Hot Search : 
FAN1117A 80000 TNY268G 80000 TS271AM 70020 VNQ690SP 80000
Product Description
Full Text Search
 

To Download WM8580A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  w WM8580A multichannel codec with s/pdif transceiver wolfson microelectronics plc production data, november 2013, rev 4.9 copyright ? 2013 wolfson microelectronics plc description the WM8580A is a multi-channel audio codec with s/pdif transceiver. the WM8580A is ideal for dvd and surround sound processing applications for home hi-fi, automotive and other audiovisual equipment. integrated into the device is a stereo 24-bit multi-bit sigma delta adc with support for digital audio output word lengths from 16-bit to 32-bit, and sampling rates from 8khz to 192khz. also included are three stereo 24-bit multi-bit sigma delta dacs, each with a dedicated oversampling digital interpolation filter. digital audio input word lengths from 16- bits to 32-bits and sampling rates from 8khz to 192khz are supported. each dac channel has independent digital volume and mute control. two independent audio data interfaces support i 2 s, left justified, right justified and dsp digital audio formats. each audio interface can operate in either master mode or slave mode. the s/pdif transceiver is iec-60958-3 compatible and supports frame rates from 32k/s to 96k/s. it has four multiplexed inputs and one output. status and error monitoring is built-in and results can reported over the serial interface or via gpo pins. s/pdif channel block configuration is also supported. the device has two plls that can be configured independently to generate two system clocks for internal or external use. device control and setup is via a 2-wire or 3-wire (spi compatible) serial interface. the serial interface provides access to all features including channel selection, volume controls, mutes, de-emphasis, s/pdif control/status, and power management facilities. alternatively, the device has a hardware control mode where device features can be enabled/disabled using selected pins. the device is available in a 48-lead tqfp package. features ? multi-channel codec with 3 stereo dacs and 1 stereo adc ? integrated s/pdif / iec-60958-3 transceiver ? audio performance ? 103db snr (?a? weighted @ 48khz) dac ? -90db thd (48khz) dac ? 100db snr (?a? weighted @ 48khz) adc ? -87db thd (48khz) adc ? dac sampling frequency: 8khz ? 192khz ? adc sampling frequency: 8khz ? 192khz ? independent adc and dac sample rates ? 2 and 3-wire serial control interface with readback, or hardware control interface ? gpo pins allow visibility of user selected status flags ? programmable audio data interface modes ? i 2 s, left, right justified or dsp ? 16/20/24/32 bit word lengths ? three independent stereo dac outputs with digital volume controls ? two independent master or slave audio data interfaces ? flexible digital interface routing with clock selection control ? 2.7v to 5.5v analogue, 2.7v to 3.6v digital supply operation ? 48-lead tqfp package applications ? digital tv ? dvd players and receivers ? surround sound av processors and hi-fi systems ? automotive audio
WM8580A production data w pd, rev 4.9, november 2013 2 block diagram
production data WM8580A w pd, rev 4.9, november 2013 3 table of contents description ....................................................................................................... 1 features ............................................................................................................ 1 applications ..................................................................................................... 1 block diagram ................................................................................................ 2 table of contents ......................................................................................... 3 pin configuration .......................................................................................... 4 ordering information .................................................................................. 4 pin description ................................................................................................ 5 multi-function pins ................................................................................................. 6 absolute maximum ratings ........................................................................ 8 recommended operating conditions ..................................................... 9 electrical characteristics ..................................................................... 9 terminology ............................................................................................................ 12 master clock timing ............................................................................................. 12 digital audio interface ? master mode ........................................................ 13 digital audio interface ? slave mode ............................................................ 14 control interface timing ? 3-wire mode ...................................................... 15 control interface timing ? 2-wire mode ...................................................... 16 device description ...................................................................................... 17 introduction ........................................................................................................... 17 control interface operation .......................................................................... 18 digital audio interfaces ..................................................................................... 22 audio data formats .............................................................................................. 24 audio interface control ................................................................................... 28 dac features ........................................................................................................... 30 adc features ........................................................................................................... 39 digital routing options ...................................................................................... 40 clock selection ..................................................................................................... 42 phase-locked loops and s/pdif clocking (software mode) ................. 53 phase-locked loops and s/pdif clocki ng (hardware mode) ................ 60 s/pdif transceiver ................................................................................................. 60 powerdown modes ................................................................................................ 73 internal power on reset circuit .................................................................... 75 hardware control mode.................................................................................... 77 register map ............................................................................................................ 81 digital filter characteristics .............................................................. 97 dac filter responses .......................................................................................... 98 digital de-emphasis characteristics ............................................................ 99 adc filter responses .......................................................................................... 99 adc high pass filter ........................................................................................... 100 applications information ...................................................................... 101 recommended external components ......................................................... 101 package dimensions .................................................................................. 103 important notice ....................................................................................... 104 address: .................................................................................................................. 104
WM8580A production data w pd, rev 4.9, november 2013 4 pin configuration ordering information device temperature range package moisture sensitivity level peak soldering temperature WM8580Ageft/v -40 to +85 o c 48-lead tqfp (pb-free) msl2 260 ? c WM8580Ageft/rv -40 to +85 o c 48-lead tqfp (pb-free, tape and reel) msl2 260 ? c note: reel quantity = 2,200
production data WM8580A w pd, rev 4.9, november 2013 5 pin description pin name type description 1 pgnd supply pll ground 2 pvdd supply pll positive supply 3 xti digital input crystal or cmos clock input 4 xto digital output crystal output 5 mfp10 digital output multi-function pin (mfp) 10. see table 1 for details of all mfp pins. 6 mfp9 digital output multi-function pin (mfp) 9. see table 1 for details of all mfp pins. 7 mfp8 digital input/output multi-function pin (mfp) 8. see table 1 for details of all mfp pins. 8 mfp7 digital input/output multi-function pin (mfp) 7. see table 1 for details of all mfp pins. 9 mfp6 digital input/output multi-function pin (mfp) 6. see table 1 for details of all mfp pins. 10 spdifop digital output s/pdif transmitter output. 11 mfp5 digital input/output multi-function pin (mfp) 5. see table 1 for details of all mfp pins. 12 mfp4 digital input/output multi-function pin (mfp) 4. see table 1 for details of all mfp pins. 13 mfp3 digital input/output multi-function pin (mfp) 3. see table 1 for details of all mfp pins. 14 spdifin1 digital input s/pdif receiver input 1 15 clkout digital output pll or crystal oscillator clock output 16 dvdd supply digital positive supply 17 dgnd supply digital ground 18 mute digital input/output dac mute-all input / all-dac infinite zero detect (izd) flag output 19 din1 digital input primary audio interface (paif) receiver data input 1 20 din2 digital input primary audio interface (paif) receiver data input 2 21 din3 digital input primary audio interface (paif) receiver data input 3 22 paifrx_lrclk digital input/output primary audio interface (paif) receiver left/right word clock 23 paifrx_bclk digital input/output primary audio interface (paif) receiver bit clock 24 mclk digital input/output system master clock; 256, 384, 512, 768, 1024 or 1152 fs 25 dout digital output primary audio interface (paif) transmitter data output 26 paiftx_lrclk digital input/output primary audio interface transmitter left/right word clock 27 mfp1 digital input/output multi-function pin (mfp) 1. see table 1 for details of all mfp pins. 28 mfp2 digital input/output multi-function pin (mfp) 2. see table 1 for details of all mfp pins. 29 hwmode digital input configures control to be either software mode or hardware mode 30 swmode digital input/output configures software interface to be either 2-wire or 3-wire. see note 2. 31 sdo digital output 3-wire control interface data output. see note 3. 32 sdin digital input/output control interface data input (and output under 2-wire control) 33 sclk digital input control interface clock 34 csb digital input 3-wire control interface latch signal / device address selection 35 ainr analogue input adc right channel input 36 ainl analogue input adc left channel input 37 adcrefp analogue output adc reference buffer decoupling pin; 10uf external decoupling 38 vmid analogue output midrail divider decoupling pin; 10uf external decoupling 39 agnd supply analogue ground 40 avdd supply analogue positive supply 41 vout1l analogue output dac channel 1 left output 42 vout1r analogue output dac channel 1 right output 43 vout2l analogue output dac channel 2 left output 44 vout2r analogue output dac channel 2 right output 45 vrefp analogue input dac and adc positive reference 46 vrefn analogue input dac and adc ground reference
WM8580A production data w pd, rev 4.9, november 2013 6 pin name type description 47 vout3l analogue output dac channel 3 left output 48 vout3r analogue output dac channel 3 right output notes : 1. digital input pins have schmitt trigger input buffers. pins 32, 33, 34 are 5v tolerant. 2. in hardware control mode, pin 30 is used for unlock flag output. 3. in hardware control mode, pin 31 is used for non_audio flag output. multi-function pins the WM8580A has 8 multi-function input/output pins (mfp 1 etc.). the function and direction (input/output) of these pins are configured using the hwmode input pin and software register control as shown below. if hwmode is set, the mfps have the function shown in column 1 of table 1. if hwmode is not set, and the register saif_en is set, the mfps have the function shown in column 2. otherwise, the gponop registers determine the mfp function as shown in columns 3 and 4. pin name hardware control mode function 1 secondary audio interface function 2 s/pdif input & independent clocking 3 general purpose output function 4 mfp1 paiftx_bclk n/a 1 paiftx_bclk 2 gpo1 mfp2 adcmclk n/a 1 adcmclk 3 gpo2 mfp3 dr1 n/a 1 spdifin2 gpo3 mfp4 dr2 n/a 1 spdifin3 gpo4 mfp5 dr3 n/a 1 spdifin4 gpo5 mfp6 dr4 saif_bclk gpo6 gpo6 mfp7 allpd saif_lrclk gpo7 gpo7 mfp8 c saif_din gpo8 gpo8 mfp9 sfrm_clk saif_dout gpo9 gpo9 mfp10 192blk n/a 1 gpo10 gpo10 table 1 multi-function pin configuration notes: 1. these pins are not used as part of the secondary audio interface, so their function is that of either column 3 or column 4. 2. mfp1 usage can be described as follows: if (adc_clksel = mclk) and (paiftxms_clksel = mclk) then mfp1 = gpo1; else mfp1 = paiftx_bclk ; (default) hwmode = 1 gpionop saif_en = 1 y y n n
production data WM8580A w pd, rev 4.9, november 2013 7 notes for mfp1: adc_clksel selected in reg 8, default is adc_mclk. paiftxms_clksel selects pllaclk if paif sources spdif rx, otherwise paiftxms_clksel selects adc_clk (register 8) 3. mfp2 usage can be described as follows: if (adc_clksel adcmclk) (controlled by reg 8) and (tx_clksel adcmclk) (controlled by reg 8) and (saifms_clksel adcmclk) then (controlled by reg 8) mfp2 = gpo2; else mfp2 = adcmclk; pin function type description paiftx_bclk digital input/output primary audio interface transmitter (paiftx) bit clock adcmclk digital input master adc clock; 256fs, 384fs, 512fs ,786fs, 1024fs or 1152fs saif_din digital input secondary audio interface (saif) receiver data input saif_dout digital output secondary audio interface (saif) transmitter data output saif_bclk digital input/output secondary audio interface (saif) bit clock saif_lrclk digital input/output secondary audio interface (saif) left/right word clock spdifin2/3/4 digital input s/pdif receiver input gpo1 ? gpo10 digital output general purpose output dr1/2/3/4 digital input internal digital routing configuration in hardware mode allpd digital input chip powerdown in hardware mode c digital output recovered channel-bit for current s/pdif sub-frame sfrm_clk digital output indicates current s/pdif sub-frame: 1 = sub-frame a 0 = sub-frame b 192blk digital output indicates start of s/pdif 192-frame block. high for duration of frame 0. table 2 multi-function pin description
WM8580A production data w pd, rev 4.9, november 2013 8 absolute maximum ratings absolute maximum ratings are stress ratings only. perm anent damage to the device may be caused by continuously operating at or beyond these limits. device functional operating limits and guaranteed performance specifications are given under electrical characteristics at the test conditions specified. esd sensitive device. this device is manufactured on a cmos process. it is therefore generically susceptible to damage from excessive static voltages. proper esd precautions must be taken during handling and storage of this device. the WM8580A has been classified as msl1, which has an unlimited floor life at <30 o c / 85% relative humidity and therefore will not be supplied in moisture barrier bags. condition min max digital supply voltage -0.3v +3.63v analogue supply voltage -0.3v +7v pll supply voltage -0.3v +5.5v voltage range digital inputs (sclk, csb & sdin only) dgnd -0.3v +7v voltage range digital inputs dgnd -0.3v dvdd + 0.3v voltage range analogue inputs 1 agnd -0.3v pgnd -0.3v avdd +0.3v pvdd +0.3v master clock frequency 37mhz operating temperature range -40 ? c +85 ? c storage temperature prior to soldering 30 ? c max / 85% rh max storage temperature after soldering -65 ? c +150 ? c pb free package body temperature (soldering 10 seconds) +260 ? c package body temperature (soldering 2 minutes) +183 ? c notes: 1. analogue and digital grounds must always be within 0.3v of each other.
production data WM8580A w pd, rev 4.9, november 2013 9 recommended operating conditions parameter symbol test conditions min typ max unit digital supply range dvdd 2.7 3.6 v analogue supply range avdd 2.7 5.5 v pll supply range pvdd 4.5 5.5 v ground agnd, vrefn, dgnd. pgnd 0 v difference dgnd to agnd/pgnd -0.3 0 +0.3 v note: digital supply dvdd must never be more than 0.3v greater than avdd. electrical characteristics test conditions avdd, pvdd, vrefp = 5v, dvdd = 3.3v, agnd, vrefn = 0v, pgnd, dgnd = 0v, t a = +25 o c, 1khz signal, fs = 48khz, 24- bit data, slave mode, mclk, adcmclk = 256fs, 1v rms input signal level unless otherwise stated. parameter symbol test conditions min typ max unit dac performance (load = 10k ? , 50pf) WM8580Ageft/v, WM8580Ageft/rv (+25 ? c) 0dbfs full scale output voltage -6% 1.0 x vrefp/5 +6% v rms signal to noise ratio (see terminology 1,2,4) snr a-weighted, @ fs = 48khz 95 103 db unweighted, @ fs = 48khz 100 db a-weighted, @ fs = 48khz, avdd = 3.3v 99 db a-weighted, @ fs = 96khz 101 db unweighted, @ fs = 96khz 98 db a-weighted, @ fs = 96khz, avdd = 3.3v 99 db a-weighted, @ fs = 192khz 101 db unweighted, @ fs = 192khz 98 db a-weighted, @ fs = 192khz, avdd = 3.3v 99 db dynamic range (see terminology 2,4) dnr a-weighted, -60db full scale input 95 103 db total harmonic distortion thd 1 khz, 0db full scale @ fs = 48khz -90 -85 db 1 khz, 0db full scale @ fs = 96khz -87 db 1 khz, 0db full scale @ fs = 192khz -84 db dac channel separation 100 db mute attenuation 1khz input, 0db gain 100 db output offset error 2 mv
WM8580A production data w pd, rev 4.9, november 2013 10 test conditions avdd, pvdd, vrefp = 5v, dvdd = 3.3v, agnd, vrefn = 0v, pgnd, dgnd = 0v, t a = +25 o c, 1khz signal, fs = 48khz, 24- bit data, slave mode, mclk, adcmclk = 256fs, 1v rms input signal level unless otherwise stated. parameter symbol test conditions min typ max unit power supply rejection ratio (see note 4) psrr 1khz 100mv p-p 50 db 20hz to 20khz 100mv p-p 45 db adc performance WM8580Ageft/v, WM8580Ageft/rv (+25 ? c) full scale input signal level (for adc 0db input) 1.0 x vrefp/5 v rms input resistance 6 k ? input capacitance 10 pf signal to noise ratio (see terminology 1,2,4) snr a-weighted, @ fs = 48khz 90 100 db unweighted, @ fs = 48khz 97 db a-weighted, @ fs = 48khz, avdd = 3.3v 97 db a-weighted, @ fs = 96khz 97 db unweighted, @ fs = 96khz 94 db a-weighted, @ fs = 96khz, avdd = 3.3v 94 db a-weighted, @ fs = 192khz 97 db unweighted, @ fs = 192khz 94 db a-weighted, @ fs = 192khz, avdd = 3.3v 94 db total harmonic distortion thd 1khz, -1db full scale @ fs = 48khz -87 -80 db 1khz, -1db full scale @ fs = 96khz -86 db 1khz, -1db full scale @ fs = 192khz -85 db dynamic range dnr -60db fs 90 100 adc channel separation 1khz input 97 db channel level matching (see terminology 4) 1khz signal 0.1 db channel phase deviation 1khz signal 0.0001 degree offset error hpf on hpf off 0 100 lsb lsb digital logic levels (cmos levels) input low level v il 0.3 x dvdd v input high level v ih 0.7 x dvdd v input leakage current -1 0.2 +1 a input capacitance 5 pf output low v ol i ol =1ma 0.1 x dvdd v output high v oh i oh = -1ma 0.9 x dvdd v
production data WM8580A w pd, rev 4.9, november 2013 11 test conditions avdd, pvdd, vrefp = 5v, dvdd = 3.3v, agnd, vrefn = 0v, pgnd, dgnd = 0v, t a = +25 o c, 1khz signal, fs = 48khz, 24- bit data, slave mode, mclk, adcmclk = 256fs, 1v rms input signal level unless otherwise stated. parameter symbol test conditions min typ max unit analogue reference levels reference voltage v vmid vrefp/2 ? 50mv vrefp/2 vrefp/2 + 50mv v potential divider resistance r vmid vrefp to vmid and vmid to vrefn vmidsel = 1 14 k ? vrefp to vmid and vmid to vrefn vmidsel = 0 44 k ? s/pdif transceiver performance jitter on recovered clock 50 ps s/pdif input levels cmos mode input low level v il 0.3 x dvdd v input high level v ih 0.7 x dvdd v input capacitance 1.25 pf input frequency 36 mhz s/pdif input levels comparator mode input capacitance 10 pf input resistance 23 k ? input frequency 25 mhz input amplitude 200 0.5 x dvdd mv pll period jitter 80 ps(rms) xtal input xti low level vx il 0 557 mv input xti high level vx ih 853 mv input xti capacitance c xj 3.32 4.491 pf input xti leakage ix leak 28.92 38.96 ma output xto low vx ol 15pf load capacitors 86 278 mv output xto high vx oh 15pf load capacitors 1.458 1.942 v supply current analogue supply current avdd, vrefp = 5v 45 ma analogue supply current avdd, vrefp = 3.3v 30 ma digital supply current dvdd = 3.3v 25 ma power down 500 a notes: 1. ratio of output level with 1khz full scale input, to the output level with all zeros into the digital input, measured ?a? weighted. 2. all performance measurements done with 20khz low pass f ilter, and where noted an a-weight filter. failure to use such a filter will result in higher thd+n and lower snr and dynamic range readings than are found in the electrical characteristics. the low pass filter removes out of band noise; although it is not audible, it may affect dynamic specification values. 3. vmid decoupled with 10uf and 0.1uf capacitors (smaller values may result in reduced performance). 4. pssr measured with vmid set to high impedance
WM8580A production data w pd, rev 4.9, november 2013 12 terminology 1. signal-to-noise ratio (db) - snr is a measure of the difference in level between the full scale output and the output with no signal applied. (no auto-zero or automute function is employed in achieving these results). 2. dynamic range (db) - dnr is a measure of the difference between the highest and lowest portions of a signal. normally a thd+n measurement at 60db below full scale. the measured signal is then corrected by adding the 60db to it. (e.g. thd+n @ -60db= -32db, dr= 92db). 3. thd (db) - thd is a ratio, of the rms values, of distortion/signal. 4. stop band attenuation (db) - is the degree to which the frequency spectrum is attenuated (outside audio band). 5. channel separation (db) - also known as cross-talk. this is a measure of the amount one channel is isolated from the other. normally measured by sending a full scale signal down one channel and measuring the other. 6. pass-band ripple - any variation of the frequency response in the pass-band region. master clock timing adcmclk/ mclk t mclkl t mclkh t mclky figure 1 master clock timing requirements test conditions avdd, pvdd, vrefp = 5v, dvdd = 3.3v, agnd, vrefn = 0v, pgnd, dgnd = 0v, t a = +25 o c parameter symbol test conditions min typ max unit system clock timing information adcmclk and mclk system clock pulse width high t mclkh 11 ns adcmclk and mclk system clock pulse width low t mclkl 11 ns adcmclk and mclk system clock cycle time t mclky 28 ns adcmclk and mclk duty cycle 40:60 60:40 table 3 master clock timing requirements
production data WM8580A w pd, rev 4.9, november 2013 13 digital audio interface ? master mode paifrx_bclk/ paiftx_bclk/ saif_bclk (output) dout/ saif_dout paifrx_lrclk/ paiftx_lrclk/ saif_lrclk (outputs) t dl din1/2/3 saif_din t dda t dht t dst figure 2 digital audio data timing ? master mode test conditions avdd, pvdd, vrefp = 5v, dvdd = 3.3v, agnd, vrefn, pgnd, dgnd = 0v, t a = +25 o c, master mode, fs = 48khz, mclk and adcmclk = 256fs unless otherwise stated. parameter symbol test conditions min typ max unit audio data input timing information paiftx_lrclk/ paifrx_lrclk/ saif_lrclk propagation delay from paiftx_bclk/ paifrx_bclk/ saif_bclk falling edge t dl 0 10 ns dout/saif_dout propagation delay from paiftx_bclk/ saif_bclk falling edge t dda 0 10 ns din1/2/3/saif_din setup time to paifrx_bclk/saif_bclk rising edge t dst 10 ns din1/2/3/saif_din hold time from paifrx_bclk/saif_bclk rising edge t dht 10 ns table 4 digital audio data timing ? master mode
WM8580A production data w pd, rev 4.9, november 2013 14 digital audio interface ? slave mode paiftx_bclk/ paifrx_bclk/ saif_bclk paiftx_lrclk/ paifrx_lrclk/ saif_bclk din1/2/3/ saif_din dout/ saif_dout t bch t bcl t bcy t lrsu t ds t lrh t dh t dd figure 3 digital audio data timing ? slave mode test conditions avdd, pvdd = 5v, dvdd = 3.3v, agnd = 0v, pgnd,dgnd = 0v, t a = +25 o c, slave mode, fs = 48khz, mclk and adcmclk = 256fs unless otherwise stated. parameter symbol test conditions min typ max unit audio data input timing information paiftx_bclk/ paifrx_bclk/saif_bclk cycle time t bcy 50 ns paiftx_bclk/ paifrx_bclk/saif_bclk pulse width high t bch 20 ns paiftx_bclk/ paifrx_bclk/saif_bclk pulse width low t bcl 20 ns paiftx_lrclk/ paifrx_lrclk/saif_bclk set-up time to paiftx_bclk/ paifrx_bclk/saif_bclk rising edge t lrsu 10 ns paiftx_lrclk/ paifrx_lrclk/ saif_lrclk hold time from paiftx_bclk/ paifrx_bclk/saif_bclk rising edge t lrh 10 ns din1/2/3/saif_din set-up time to paifrx_bclk/ saif_bclk rising edge t ds 10 ns din1/2/3/saif_din hold time from paifrx_bclk/saif_bclk rising edge t dh 10 ns dout/saif_dout propagation delay from paiftx_bclk/saif_bclk falling edge t dd 0 10 ns table 5 digital audio data timing ? slave mode
production data WM8580A w pd, rev 4.9, november 2013 15 control interface timing ? 3-wire mode csb sclk sdin t dho t dsu t csh t scy t scs lsb sdo t dl lsb t css t csu t csm figure 4 spi compatible control interface input timing test conditions avdd, pvdd = 5v,dvdd = 3.3v, agnd, pgnd,dgnd = 0v, t a = +25 o c, fs = 48khz, mclk and adcmclk = 256fs unless otherwise stated parameter symbol min typ max unit sclk rising edge to csb rising edge t scs 60 ns sclk pulse cycle time t scy 80 ns sclk duty cycle 40/60 60/40 ns sdin to sclk set-up time t dsu 20 ns sdin hold time from sclk rising edge t dho 20 ns sdo propagation delay from sclk falling edge t dl 5 ns csb pulse width high t csh 20 ns sclk to csb low (required for read cycle) set- up time t csu 20 ns csb min (write cycle only) t csm 0.5* t scy ns csb rising/falling to sclk rising t css 20 ns sclk glitch suppression t ps 2 8 ns table 6 3-wire spi compatible control interface input timing information
WM8580A production data w pd, rev 4.9, november 2013 16 control interface timing ? 2-wire mode figure 5 control interface timing ? 2-wire serial control mode test conditions avdd, pvdd = 5v,dvdd = 3.3v, agnd, pgnd,dgnd = 0v, t a = +25 o c, fs = 48khz, mclk and adcmclk = 256fs unless otherwise stated parameter symbol min typ max unit program register input information sclk frequency 0 526 khz sclk low pulse-width t 1 1.3 us sclk high pulse-width t 2 600 ns hold time (start condition) t 3 600 ns setup time (start condition) t 4 600 ns data setup time t 5 100 ns sdin, sclk rise time t 6 300 ns sdin, sclk fall time t 7 300 ns setup time (stop condition) t 8 600 ns data hold time t 9 900 ns sclk glitch suppression t ps 0 5 ns table 7 2-wire control interface timing information t 3 t 1 t 6 t 9 t 2 t 5 t 7 t 3 t 4 t 8 sdi scl k
production data WM8580A w pd, rev 4.9, november 2013 17 device description introduction WM8580A is a complete mutli-channel codec with integrated s/pdif transceiver. the device comprises three separate stereo dacs and a stereo adc, in a single package, and controlled by either software or hardware interfaces. the three stereo dac outputs are ideal to implement a complete 5.1 channel surround system. each dac has its own digital volume control (adjustable in 0.5db steps) with zero cross detection. with zero cross enabled, volume updates occur as a signal transitions through its zero point. this minimises audible clicks and ?zipper? noise as the gain values change. each stereo dac has its own data input (din1/2/3) and shared word clock (paifrx_lrclk), bit clock (paifrx_bclk) and master clock (mcl k). the stereo adc has data output (dout), word clock (paiftx_lrclk), and bit clock (paiftx_bclk). this allows the adc to operate at a different sample rate to the dacs. in addition, a separate adc master clock (adcmclk) can be used instead of mclk for further flexibility. there are two independent digital audio interfaces, which may be configured to operate in either master or slave mode. in slave mode, the lrclks and bclks are inputs. in master mode, the lrclks and bclks are outputs. the audio interfaces support right justified, left justified, i 2 s and dsp formats. word lengths of 16, 20, 24 and 32 bits are available (with the exception of 32 bit right justified). operation using system clocks of 128fs, 192fs, 256fs, 384fs, 512fs, 768fs or 1152fs is provided. in slave mode, selection between clock rates is automatically controlled. in master mode, the master clock to sample rate ratio is set by register control. sample rates (fs) from less than 8ks/s up to 192ks/s are permitted providing the appropriate system clock is input. the s/pdif transceiver is iec-60958-3 compatible with 32k frames/s to 96k frames/s support. s/pdif data can be input on one of four pins, and routed internally to the audio interfaces, dac1, and s/pdif transmitter. error flags and status informati on can be read back over the serial interface, or output on gpo pins. the s/pdif transmitter can source data from the adc, s/pdif receiver or audio interfaces. the transceiver supports c onsumer mode channel information, and transmitted channel bits can be configured via register control. the digital routing paths between all the interfaces can be configured by the user, as can the corresponding interface clocking schemes. there are two plls, which can be independently configured to generate two system clocks for internal or external use. the serial control interface is controlled by pins csb, sclk, and sdin, which are 5v tolerant with ttl input thresholds, allowing the WM8580A to be used with dvdd = 3.3v and be controlled by a controller with 5v output. sdo allows status registers to be read back over the serial interface (sdo is not 5v tolerant). the WM8580A may also be controlled in hardware mode, selected by the hwmode pin. in hardware mode, limited control of internal functionality is avail able via the multi-function pins (mfps) and csb, sclk, sdin and mute pins.
WM8580A production data w pd, rev 4.9, november 2013 18 control interface operation control of the WM8580A is implemented either in hard ware control mode or software control mode. the method of control is determined by the state of the hwmode pin. if the hwmode pin is low, software control mode is selected. if the hwmode pin is high, hardware control mode is selected. the software control interface is described below and hardware control mode is described on page 70 software control is implemented with a 3-wire (3-wire write, 4-wire read, spi compatible) or 2-wire read/write serial interface. the interface configuration is determined by the state of the swmode pin. if the swmode pin is low, the 2-wire configuration is selected. if swmo de is high the 3-wire spi compatible configuration is selected. hwmode swmode 0 1 0 1 software control hardware control 2-wire control 3-wire control table 8 hardware/software mode setup the control interface is 5v tolerant, meaning that the control interface input signals csb, sclk and sdin may have an input high level of 5v while dvdd is 3v. input thresholds are determined by dvdd. 3-wire (spi compatible) serial control mode with read-back register write sdin is used to program data, sclk is used to clock in the program data and csb is used to latch the program data. sdin is sampled on the rising edge of sclk. the 3-wire interface write protocol is shown in figure 6. the csb can be low for the duration of the write cycle or it can be a short csb pulse at the end of the write cycle. figure 6 3-wire spi compatible interface 1. a[6:0] are control address bits 2. d[8:0] are control data bits 3. csb is edge sensitive ? the data is latched on the rising edge of csb. register read-back not all registers can be read. only the device id (registers r0, r1 and r2) and the status registers can be read. these status registers ar e labelled as ?read only? in the register map section. the read-only status registers can be read back via the sdo pin. to enable readback the readen control register bit must be set. the status registers can then be read using one of two methods, selected by the contread register bit. each time a read operation is performed after any write operation, the first read result may contain corrupt data. to ensure correct operation, the first read result should be ignored and a second read operation carried out. subsequent register reads are unaffected until further register writes are performed.
production data WM8580A w pd, rev 4.9, november 2013 19 with contread set, a single read-only register can be read back by writing to any other register or to a dummy register. the register to be read is determined by the readmux[2:0] bits. when a write to the device is performed, the device will respond by returning the status byte in the register selected by the readmux register bits. this 3-wire interface read back method using a write access is shown in figure 7 register address bit label default description r52 readback 34h 2:0 readmux [2:0] 000 determines which status register is to be read back: 000 = error register 001 = channel status register 1 010 = channel status register 2 011 = channel status register 3 100 = channel status register 4 101 = channel status register 5 110 = s/pdif status register 3 contread 0 continuous read enable. 0 = continuous read-back mode disabled 1 = continuous read-back mode enabled 4 readen 0 read-back mode enable. 0 = read-back mode disabled 1 = read-back mode enabled table 9 read-back control register the 3-wire interface readback protocol is shown below. note that the sdo pin is tri-state unless csb is held low; therefore csb must be held low for the duration of the read. figure 7 3-wire spi compatible interface continuous readback if contread is set to zero, the user can read back directly from the register by writing to the register address, to which the device will respond with data. the protocol for this system is shown in figure 8 below.
WM8580A production data w pd, rev 4.9, november 2013 20 figure 8 3-wire spi compatible control interface non-continuous readback 2-wire serial control mode with read-back the WM8580A supports software control via a 2-wire read/write serial bus. many devices can be controlled by the same bus, and each device has a unique 7-bit address (see table 10). the controller indicates the start of data transfer with a high to low transition on sdin while sclk remains high. this indicates that a device address and data will follow. all devices on the 2-wire bus respond to the start condition and shift in the next eight bits on sdin (7-bit address + read/write bit, msb first). if the device address received matches the address of the WM8580A, the WM8580A responds by pulling sdin low on the next clock pulse (ack). if the address is not recognised, the WM8580A returns to the idle condition and wait for a new start condition and valid address. once the WM8580A has acknowledged a correct address, the controller sends the first byte of control data (rega(6:0), i.e. the WM8580A register address plus the first bit of register data). the WM8580A then acknowledges the first data byte by pulling sdin low for one clock pulse. the controller then sends the second byte of control data (din (7:0),, i.e. the remaining 8 bits of register data), and the WM8580A acknowledges by driving sdin low. the transfer of data is complete when there is a low to high transition on sdin while sclk is high. after receiving a complete address and data sequence the WM8580A returns to the idle state and waits for another start condition. if a start or stop condition is detected out of sequence at any point during data transfer (i.e. sdin changes while sclk is high), the device returns to the idle condition. figure 9 2-wire serial control interface the WM8580A has two possible device addresses, which can be selected using the csb pin. csb state device address in 2- wire mode address (x=r/w bit) x=0 x= 1 low or unconnected 0011010x 0x34 0x35 high 0011011x 0x36 0x37 table 10 2-wire mpu interface address selection
production data WM8580A w pd, rev 4.9, november 2013 21 register readback the WM8580A allows readback of certain registers in 2-wire mode, with data output on the sdo pin. as in 3-wire mode, there are two methods of reading back data: continuous and non-continuous readback. continuous readback is set by writing to the readback control register (see table 9) to set readen and contread to 1, and to set the readmux bits to select the register to be read back. the status of this register can then be readback using the protocol shown in figure 10. figure 10 2-wire continuous readback if contread is set to zero, the user can read back directly from the register by writing to the register address, to which the device will respond with data. the protocol for this system is shown in figure 11. figure 11 2-wire non-continuous readback software register reset writing to register r53 will cause a register reset, resetting all register bits to their default values. table 11 software reset register address bit label default description r53 reset 35h 8:0 reset n/a writing any data value to this register will apply a reset to the device registers.
WM8580A production data w pd, rev 4.9, november 2013 22 digital audio interfaces audio data is transferred to and from the WM8580A via the digital audio interfaces. there are two receive audio interfaces and two transmit audio interfaces. the digital routing options for these interfaces are described on page 22. control of the audio interfaces is described below. master and slave modes the audio interfaces require both a left-right-cloc k (lrclk) and a bit-clock (bclk). these can be supplied externally (slave mode) or they can be generated internally (master mode). when in master mode, the bclks and lrclks for an interface are output on the corresponding bclk and lrclk pins. by default, all interfaces operate in slave mode, but can operate in master mode by setting the paiftxms, paifrxms and saifms register bits. in hardware control mode, the paif transmitter can operate in master mode by setting the sdi pin. figure 12 slave mode figure 13 master mode
production data WM8580A w pd, rev 4.9, november 2013 23 register address bit label default description r9 paif 1 09h 5 paifrx ms 0 paif receiver master/slave mode select: 0 = slave mode 1 = master mode r10 paif 2 0ah 5 paiftx ms 0 paif transmitter master/slave mode select: 0 = slave mode 1 = master mode r11 saif 1 0bh 5 saifms 0 saif master/slave mode select: 0 = slave mode 1 = master mode table 12 master mode registers the frequency of a master mode lrclk is dependant on system clock and the rate register control bits. table 13 shows the settings for common sample rates and system clock frequencies. sampling rate (lrclk) mclk clock frequency (mhz) 128fs 192fs 256fs 384fs 512fs 768fs 1152fs rate =000 rate =001 rate =010 rate =011 rate =100 rate =101 rate =110 32khz 4.096 6.144 8.192 12.288 16.384 24.576 36.864 44.1khz 5.6448 8.467 11.2896 16.9344 22.5792 33.8688 unavailable 48khz 6.144 9.216 12.288 18.432 24.576 36.864 unavailable 88.2khz 11.2896 16.9344 22.5792 33.8688 unavailable unavailable unavailable 96khz 12.288 18.432 24.576 36.864 unavailable unavailable unavailable 176.4khz 22.5792 33.8688 unavailable unavailable u navailable unavailable unavailable 192khz 24.576 36.864 unavailable unavailable u navailable unavailable unavailable table 13 master mode mclk / lrclk frequency selection register address bit label default description r9 paif 1 09h 2:0 paifrx_rate [2:0] 010 master mode mclk/lrclk ratio: 000 = 128fs 001 = 192fs 010 = 256fs 011 = 384fs 100 = 512fs 101 = 768fs 110 = 1152fs r10 paif 2 0ah 2:0 paiftx_rate [2:0] 010 r11 saif 1 0bh 2:0 saif_rate [2:0] 010 table 14 master mode rate registers in master mode, the bclksel register controls the number of bclks per lrclk. if the mclk:lrclk ratio is 128fs or 192fs and bclk sel = 10, bclksel is overwritten to be 128 bclks/lrclk. also, if bclksel = 00, and lrclk is 192fs or 1152fs, the generated bclk has a mark-space ratio of 1:2.
WM8580A production data w pd, rev 4.9, november 2013 24 register address bit label default description r9 paif 1 09h 4:3 paifrx_bclksel [1:0] 00 master mode bclk rate: 00 = 64 bclks per lrclk 01 = 32 bclks per lrclk 10 = 16 bclks per lrclk 11 = bclk = system clock. r10 paif 2 0ah 4:3 paiftx_bclksel [1:0] 00 r11 saif 1 0bh 4:3 saif_bclksel [1:0] 00 table 15 master mode bclk control audio data formats five popular interface formats are supported: ? left justified mode ? right justified mode ? i 2 s mode ? dsp mode a ? dsp mode b all five formats send the msb first and support word lengths of 16, 20, 24 and 32 bits, with the exception of 32 bit right justified mode, which is not supported. audio data for each stereo channel is time multiplexed with the interface?s left-right-clock (lrclk), indicating whether the left or right channel is present. the lrclk is also used as a timing reference to indicate the beginning or end of the data words. in left justified, right justified and i 2 s modes, the minimum number of bclks per lrclk period is 2 times the selected word length. lrclk must be high for a minimum of bclk periods equivalent to the audio word length, and low for minimum of the same number of bclk periods. any mark to space ratio on lrclk is acceptable provided these requirements are met.
production data WM8580A w pd, rev 4.9, november 2013 25 in dsp modes a and b, left and right channels must be time multiplexed and input on the input data line on the audio interface. for the paif receiver, all three left/right dac channels are multiplexed on din1 (assuming dac_sel = 00). lrclk is used as a frame synchronisation signal to identify the msb of the first word. the minimum number of bclks per lrclk period is six times the selected word length. any mark to space ratio is acceptable on lrclk provided the rising edge is correctly positioned. left justified mode in left justified mode, the msb of the input data is sampled by the WM8580A on the first rising edge of bclk following a lrclk transition. the msb of the output data changes on the same falling edge of bclk as lrclk and may be sampled on the next rising edge of bclk. lrclk is high during the left samples and low during the right samples. figure 14 left justified mode timing diagram right justified mode in right justified mode, the lsb of input data is sampled on the rising edge of bclk preceding a lrclk transition. the lsb of the output data changes on the falling edge of bclk preceding a lrclk transition, and may be sampled on the next rising edge of bclk. lrclks are high during the left samples and low during the right samples. figure 15 right justified mode timing diagram
WM8580A production data w pd, rev 4.9, november 2013 26 i 2 s mode in i 2 s mode, the msb of din1/2/3 is sampled on the second rising edge of bclk following a lrclk transition. the msb of the output data changes on the first falling edge of bclk following an lrclk transition, and may be sampled on the next rising edge of bclk. lrclks are low during the left samples and high during the right samples. figure 16 i 2 s mode timing diagram dsp mode a in dsp mode a, the msb of channel 1 left data is sampled on the second rising edge of bclk following a lrclk rising edge. channel 1 right data then follows. for the paif receiver, channels 2 and 3 follow as shown in figure 17. figure 17 dsp mode a timing diagram ? paif receiver input data for the saif receiver, only stereo information is processed. figure 18 dsp mode a timing diagram ? saif receiver input data
production data WM8580A w pd, rev 4.9, november 2013 27 the msb of the left channel of the output data changes on the first falling edge of bclk following a low to high lrclk transition and may be sampled on the rising edge of bclk. the right channel data is contiguous with the left channel data. figure 19 dsp mode a timing diagram ? paif/saif transmitter data dsp mode b in dsp mode b, the msb of channel 1 left data is sampled on the first bclk rising edge following a lrclk rising edge. channel 1 right data then follows. for the paif receiver, channels 2 and 3 follow as shown in figure 20. figure 20 dsp mode b timing diagram ? paif receiver input data for the saif receiver, only stereo information is processed. figure 21 dsp mode b timing diagram ? saif receiver input data
WM8580A production data w pd, rev 4.9, november 2013 28 the msb of the output data changes on the same falling edge of bclk as the low to high lrclk transition and may be sampled on the rising edge of bclk. the right channel data is contiguous with the left channel data. figure 22 dsp mode b timing diagram ? paif/saif transmitter data audio interface control the register bits controlling the audio interfaces are summarized below. dynamically changing the audio data format may cause erroneous operation, and is not recommended. interface timing is such that the input data and lrclk are sampled on the rising edge of the interface bclk. output data changes on the falling edge of the i nterface bclk. by setting the appropriate bit clock polarity control register bits, e.g. paifrxbcp, the polarity of bclk may be reversed, allowing input data and lrclk to be sampled on the falling edge of bclk. setting the bit clock polarity register for a transmit interface results in output data changing on the rising edge of bclk. similarly, the polarity of left/right clocks can be reversed by setting the appropriate left right polarity bits, e.g. paifrxlrp. register address bit label default description r12 paif 3 0ch 1:0 paifrxfmt [1:0] 10 paif receiver audio data format select 11: dsp format 10: i 2 s format 01: left justified 00: right justified 3:2 paifrxwl [1:0] 10 paif receiver audio data word length 11: 32 bits (see note 1,2) 10: 24 bits 01: 20 bits 00: 16 bits 4 paifrxlrp 0 in lj/rj/i 2 s modes 0 = lrclk not inverted 1 = lrclk inverted in dsp format: 0 = dsp mode a 1 = dsp mode b 5 paifrxbcp 0 paif receiver bclk polarity 0 = bclk not inverted 1 = bclk inverted
production data WM8580A w pd, rev 4.9, november 2013 29 register address bit label default description r13 paif 4 0dh 1:0 paiftxfmt [1:0] 10 paif transmitter audio data format select 11: dsp format 10: i 2 s format 01: left justified 00: right justified 3:2 paiftxwl [1:0] 10 paif transmitter audio data word length 11: 32 bits (see note 1,2) 10: 24 bits 01: 20 bits 00: 16 bits 4 paiftxlrp 0 in lj/rj/i 2 s modes 0 = lrclk not inverted 1 = lrclk inverted in dsp format: 0 = dsp mode a 1 = dsp mode b 5 paiftxbcp 0 paif receiver bclk polarity 0 = bclk not inverted 1 = bclk inverted r14 saif 2 0eh 1:0 saiffmt [1:0] 10 saif audio data format select 11: dsp format 10: i 2 s format 01: left justified 00: right justified 3:2 saifwl [1:0] 10 saif audio data word length 11: 32 bits (see note 1,2) 10: 24 bits 01: 20 bits 00: 16 bits 4 saiflrp 0 in lj/rj/i 2 s modes 0 = lrclk not inverted 1 = lrclk inverted in dsp format: 0 = dsp mode a 1 = dsp mode b 5 saifbcp 0 saif bclk polarity 0 = bclk not inverted 1 = bclk inverted 6 saif_en 0 saif enable 0 = saif disabled 1 = saif enabled table 16 audio interface control notes 1. right justified mode does not support 32-bit data. if word length xaifxxwl=11b in right justified mode, the word length is forced to 24-bits. in all modes, the data is signed 2?s complement. the digital filters internal signal paths process 24-bit data. if the device is programmed to receive 16 or 20-bit data, the device pads the unused lsbs with zeros. if the device is programmed into 32-bit mode, the 8 lsbs are ignored.
WM8580A production data w pd, rev 4.9, november 2013 30 2. in 24-bit i 2 s mode, any data width of 24 bits or less is supported provided that lrclk is high for a minimum of 24 bclk cycles and low for a minimum of 24 bclk cycles. if exactly 32-bit clocks occur in one full left/right clock period the interface will auto detect and configure a 16-bit data word length. dac features dac input control the primary audio interface receiver has a separate input pin for each stereo dac. any input pin can be routed to any dac using the dacsel register bits. register address bit label default description r15 dac control 1 0fh 1:0 dac1sel [1:0] 00 dac digital input select 00 = dac takes data from din1 01 = dac takes data from din2 10 = dac takes data from din3 3:2 dac2sel [1:0] 01 5:4 dac3sel [1:0] 10 table 17 dac input select register dac oversampling control for sampling clock ratios of 256fs to 1152fs the dacs should be programmed to operate at 128 times oversampling rate. for sampling clock ratios of 128fs and 192fs, the dacs must be programmed to operate at 64 times oversampling rate. the dacosr register bit selects between 128x and 64x oversampling. register address bit label default description r12 paif 3 0ch 6 dacosr 0 dac oversampling rate control 0= 128x oversampling 1= 64x oversampling table 18 dac oversampling register
production data WM8580A w pd, rev 4.9, november 2013 31 dac output control the dac output control word determines how the left and right inputs to the audio interface are applied to the left and right dacs: register address bit label default description r16 dac control 2 10h 3:0 pl[3:0] 1001 pl[3:0] left o/p right o/p 0000 mute mute 0001 left mute 0010 right mute 0011 (l+r)/2 mute 0100 mute left 0101 left left 0110 right left 0111 (l+r)/2 left 1000 mute right 1001 left right 1010 right right 1011 (l+r)/2 right 1100 mute (l+r)/2 1101 left (l+r)/2 1110 right (l+r)/2 1111 (l+r)/2 (l+r)/2 table 19 dac attenuation register (pl) zero flag output each dac channel has a ?zero detect circuit? which detects when 1024 consecutive zero samples have been input. should both channels of a dac indicate a zero-detect (or if either dacpd or dmute is set for that dac), then the zero flag for that dac is asserted. the dzfm register bits determine which zero flag is visible on the mute and gpo pins. register address bit label default description r16 dac control 2 10h 6:4 dzfm[2:0] 000 selects the source for zflag 000 ? all dacs zero flag 001 ? dac1 zero flag 010 ? dac2 zero flag 011 ? dac3 zero flag 100 ? zflag = 0 101 ? zflag = 0 110 ? zflag = 0 111 ? zflag = 0 table 20 dzfm register
WM8580A production data w pd, rev 4.9, november 2013 32 infinite zero detect setting the izd register bit will enable the internal infinite zero detect function: register address bit label default description r16 dac control 2 10h 7 izd 0 infinite zero detection circuit control and automute control 0 = infinite zero detect automute disabled 1 = infinite zero detect automute enabled table 21 izd register with izd enabled, applying 1024 consecutive zero input samples to a stereo input channel on any dac will cause that stereo channel output to be muted. mute will be removed as soon as either of those stereo channels receives a non-zero input.
production data WM8580A w pd, rev 4.9, november 2013 33 dac digital volume control the dac volume may also be adjusted in the digital domain using independent digital attenuation control registers register address bit label default description r20 digital attenuation dacl 1 14h 7:0 lda1[7:0] 11111111 (0db) digital attenuation control for dac1 left channel (dacl1) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store lda1 in intermediate latch (no change to output) 1 = apply lda1 and update attenuation on all channels r21 digital attenuation dacr 1 15h 7:0 rda1[6:0] 11111111 (0db) digital attenuation control for dac1 right channel (dacr1) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store rda1 in intermediate latch (no change to output) 1 = apply rda1 and update attenuation on all channels. r22 digital attenuation dacl 2 16h 7:0 lda2[7:0] 11111111 (0db) digital attenuation control for dac2 left channel (dacl2) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store lda2 in intermediate latch (no change to output) 1 = apply lda2 and update attenuation on all channels. r23 digital attenuation dacr 2 17h 7:0 rda2[7:0] 11111111 (0db) digital attenuation control for dac2 right channel (dacr2) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store rda2 in intermediate latch (no change to output) 1 = apply rda2 and update attenuation on all channels. r24 digital attenuation dacl3 18h 7:0 lda3[7:0] 11111111 (0db) digital attenuation control for dac3 left channel (dacl3) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store lda3 in intermediate latch (no change to output) 1 = apply lda3 and update attenuation on all channels. r25 digital attenuation dacr3 19h 7:0 rda3[7:0] 11111111 (0db) digital attenuation control for dac3 right channel (dacr3) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store rda3 in intermediate latch (no change to output) 1 = apply rda3 and update attenuation on all channels. r28 master digital attenuation 1ch 7:0 mastda[7:0] 11111111 (0db) digital attenuation control for all dac channels in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store gain in intermediate latch (no change to output) 1 = apply gain and update attenuation on all channels. table 22 digital attenuation registers note: the volume update circuit of the WM8580A has two sets of registers; ldax and rdax. these can be accessed individually, or simultaneously by writing to mastda ? master digital attenuation. writing to mastda will overwrite the contents of ldax and rdax.
WM8580A production data w pd, rev 4.9, november 2013 34 l/rdax[7:0] gain level 00(hex) - ? db (mute) 01(hex) -127.5db : : : : : : fe(hex) -0.5db ff(hex) 0db table 23 digital volume control gain levels setting the dacatc register bit causes the l eft channel attenuation settings to be applied to both left and right channel dacs from the next audio input sample. no update to the attenuation registers is required for dacatc to take effect. register address bit label default description r19 dac control 5 13h 6 dacatc 0 attenuator control 0 = all dacs use attenuations as programmed. 1 = right channel dacs use corresponding left dac attenuations table 24 dac attenuation register (dacatc) the digital volume control also incorporates a zero cross detect circuit which detects a transition through the zero point before updating the digital volume control with the new volume. this mechanism helps prevents pops and clicks during vo lume transitions, and is enabled by control bit dzcen. register address bit label default description r19 dac control 5 13h 5 dzcen 0 dac digital volume zero cross enable 0 = zero cross detect disabled 1 = zero cross detect enabled table 25 digital zero cross register
production data WM8580A w pd, rev 4.9, november 2013 35 mute modes the WM8580A has individual mutes for each of the three dac channels. setting dmute for a channel will apply a ?soft-mute? to the input of the digital filters for that channel. dmute[0] mutes dac1 channel, dmute[1] mutes dac2 channel and dmute[2] mutes dac3 channel. setting the muteall register bit will apply a ?soft-mute? to the input of all the dac digital filters. a soft-mute allows the user to control the analog output of the dac such that the output waveform is looks like that shown in figure 23. the mute pin can also be used to apply soft-mute to the dac selected by the dzfm register bits. however, if the mpdenb register bit is set, the mute pin will activate a soft-mute for all dacs. register address bit label default description r19 dac control 5 13h 2:0 dmute[2:0] 000 dac channel soft mute enables: dmute[0] = 1, enable soft- mute on dac1. dmute[1] = 1, enable soft- mute on dac2. dmute[2] = 1, enable soft- mute on dac3. 4 muteall 0 dac channel master soft mute. mutes all dac channels: 0 = disable soft-mute on all dacs. 1 = enable soft-mute on all dacs. 7 mpdenb 0 mute pin decode enable: 0 = mute activates soft-mute on dac selected by dzfm 1 = mute activates softmute on all dacs table 26 mute registers
WM8580A production data w pd, rev 4.9, november 2013 36 figure 23 application and release of mute -2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 0 0.001 0.002 0.003 0.004 0.005 0.006 time(s)
production data WM8580A w pd, rev 4.9, november 2013 37 dzfm selector zflag1 zflag2 zflag 3 mute (pin) mute (register) decode izd mpdenb dmute(2:0) muteall dac1 i/p dac2 i/p dac3 i/p dzfm (2:0) 1024 zeros detect pl(3:0) dacpd(2:0) ldax/rdax (digital volume) volume (register) decode channel 1 analogue mute channel 2 analogue mute channel 3 analogue mute channel 1 softmute channel 2 softmute channel 3 softmute dac_src[1:0] = 00 s/pdif rx data pcm_n or audio_n = 1 dac_src[1:0] = 00 s/pdif rx data unlock = 1 figure 24 mute mode block diagram note: the above block diagram shows the operation of the various mute functions.
WM8580A production data w pd, rev 4.9, november 2013 38 figure 23 shows the application and release of mute whilst a full amplitude sinusoid is being played at 48khz sampling rate. when mute (lower trac e) is asserted, the output (upper trace) begins to decay exponentially from the dc level of the last input sample. the output will decay towards v mid with a time constant of approximately 64 input samples. if mute is applied to all channels for 1024 or more input samples the dac will be muted if izd is set. when mute is de-asserted, the output will restart immediately from the current input sample. all other means of muting the dac channels will c ause a much more abrupt muting of the output. this abrupt muting is referred to as an analog mute and it will switch the analog outputs immediately to vmid. de-emphasis mode a digital de-emphasis filter may be applied to eac h dac channel. the de-emphasis filter for each stereo channel is enabled under the control of deem p[2:0]. deemp[0] enables the de-emphasis filter for dac 1, deemp[1] enables the de-emphasis filter for dac 2, and deemp[2] enables the de- emphasis filter for dac 3. register address bit label default description r17 dac control 3 11h 2:0 deemp[2:0] 000 de-emphasis mode select: deemp[0] = 1, enable de- emphasis on dac1. deemp[1] = 1, enable de- emphasis on dac2. deemp[2] = 1, enable de- emphasis on dac3. 4 deempall 0 0 = de-emphasis controlled by deemp[2:0] 1 = de-emphasis enabled on all dacs table 27 de-emphasis register refer to figure 47, figure 48, figure 49 and figure 50 for details of the de-emphasis modes at different sample rates. dac output phase the dac phase control word determines whether the output of each dac is non-inverted or inverted register address bit label default description r18 dac control 4 12h 5:0 phase [5:0] 111111 controls phase of dac outputs 0 = inverted 1 = non-inverted phase[0] = 0 inverts phase of dac1l output phase[1] = 0 inverts phase of dac1r output phase[2] = 0 inverts phase of dac2l output phase[3] = 0 inverts phase of dac2r output phase[4] = 0 inverts phase of dac3l output phase[5] = 0 inverts phase of dac3r output table 28 dac output phase register
production data WM8580A w pd, rev 4.9, november 2013 39 adc features adc high-pass filter disable the adc digital filters incorporate a digital high-pass filter. by default, this is enabled but can be disabled by setting the adchpd register bit to 1. this allows the input to the adc to be dc coupled. register address bit label default description r29 adc control 1 1dh 4 adchpd 0 adc high-pass filter disable 0 = high-pass filter enabled 1 = high-pass filter disabled table 29 adc functions register adc oversampling rate select the internal adc signal processing operates at an oversampling rate of 128fs for all mclk:lrclk ratios. the exception to this is for operation with a 128fs or 192fs master clock, where the internal oversampling rate of the adc is 64fs. for adc operation at 96khz in 256fs or 384fs mode it is recommended that the user set the adcosr bit. this changes the adc signal processing oversampling rate from 128fs to 64fs. similarly, for adc operation at 192khz in 128fs or 192fs mode it is recommended that the user set the adcosr bit to change the oversampling rate from 64fs to 32fs. register address bit label default description r29 adc control 1 1dh 3 adcosr 0 adc oversample rate select 0 = 128/64x oversampling 1 = 64/32x oversampling table 30 adc functions register adc mute as with the dac, each adc channel also has a m ute control bit, which mutes the inputs to the adc. register address bit label default description r29 adc control 1 1dh 0 amutel 0 adc mute select 0 : normal operation 1: mute adc left 1 amuter 0 adc mute select 0 : normal operation 1: mute adc right 2 amuteall 0 adc mute select 0 : normal operation 1: mute both adc channels table 31 adc mute register
WM8580A production data w pd, rev 4.9, november 2013 40 digital routing options the WM8580A has extremely flexible digital interface routing options, which are illustrated in figure 25. it has s/pdif receiver, s/pdif transmitter, 3 stereo dacs, a stereo adc, a primary audio interface and a secondary audio interface. each dac has its own digital input pin din1/2/3. internal multiplexers in the primary audio interface receiver allow the data received on any din pin to be routed to any dac. any din pin routed to dac1 can also be routed to the s/pdif transmitter and secondary audio interface transmitter. dac1 may also be used to convert received s/pdif data, or data received from the secondary audio interface. dacs 2-3 take data only from the primary audio interface. the audio interfaces can also output adc data or received s/pdif data. the s/pdif transmitter can output s/pdif received data, adc data, or data from either audio interface. figure 25 digital routing
production data WM8580A w pd, rev 4.9, november 2013 41 the registers described below configure the digital routing options. register address bit label default description r12 paif 3 0ch 8:7 dac_src [1:0] 11 dac1 source: 00 = s/pdif received data. 10 = saif receiver data 11 = paif receiver data note: when dac_src = 00, dac2/3 may be turned off, depending on rx2dac_mode. r13 paif 4 0dh 8:7 paiftx_src [1:0] 01 primary audio interface transmitter source: 00 = s/pdif received data. 01 = adc digital output data. 10 = saif receiver data r14 saif 2 0eh 8:7 saiftx_src [1:0] 00 secondary audio interface transmitter source: 00 = s/pdif received data. 01 = adc digital output data. 11 = paif receiver data r30 spdtxchan 0 1eh 1:0 txsrc [1:0] 00 s/pdif transmitter data source. 00 = s/pdif received data(see real_through) 01 = adc digital output data. 10 = saif receiver data 11 = paif receiver data 3 real_ through 0 s/pdif through mode control 0 = spdifop pin sources output of s/pdif transmitter 1 = spdifop pins sources output of s/pdif in mux table 32 interface source select registers
WM8580A production data w pd, rev 4.9, november 2013 42 clock selection to accompany the flexible digital routing options, the WM8580A offers a similar flexible clock configuration capability. the user can chose which clock drives each of the main functional blocks. in general the choice of clock is between mclk, adcmclk, pllaclk and pllbclk, with some restrictions dependant upon the digital routing configuration. an example of the restrictions is if the s/pdif receiver is routed to dac1, then the approp riate clock for dac1 is autoconfigured. not all 4 clocks are available to all main function blocks. for the purposes of description, table 33 defines the signal names and descriptions used in the following sections. signal name description mclk system master clock pin adcmclk adc masetr clock input pin (mfp2) pllaclk output of plla (following any programmed division) pllbclk output of pllb (following any programmed division) dac_clk the internal clock driving all dac functional blocks dac_clk_sel user programmed register select bits to select dac_clk (reg8, bits 1:0) dac_clk_sel_i internally generated multiplexer select bits to select dac_clk ? generated based on dac_clk_sel register bits and digital routing configuration. adc_clk the internal clock driving the adc functional block adc_clk_sel_i internally generated multiplexer select bits to select adc_clk ? generated based on adc_clk_sel register bits and digital routing configuration. adc_clk_sel user programmed register select bits to select adc_clk (reg8, bits 3:2) tx_clk the internal clock driving the s/pdif tx functional block tx_clksel_i internally generated multiplexer select bits to select tx_clk ? generated based on tx_clksel register bits and digital routing configuration. tx_clksel user programmed register select bits (reg8, bits 5:4) to select tx_clk paifrxms_clksel user programmed register select bits (reg9, bits 7:6) to select paif rx interface input clock when the paif rx is configured in master mode. in master mode, the paif rx generates a bclk and an lrclk from the selected clock source. when in slave mode the paif rx uses the input pins paifrx_bclk and paifrx_lrclk paifrxms_clksel_i internally generated multiplexer select bits to select paif rx clock source ? generated based on paifrxms_clksel register bits and digital routin g configuration. paiftxms_clksel user programmed register select bits (reg??, bits ??) to select paif tx interface input clock when the paif tx is configured in master mode. in master mode, the paif tx generates a bclk and an lrclk from the selected clock source. when in slave mode the paif tx uses the input pins paiftx_bclk (mfp1) and paiftx_lrclk paiftxms_clksel_i internally generated multiplexer select bits to select paif rx clock source ? generated based on paifrxms_clksel register bits and digital routin g configuration. saif_clksel user programmed register select bits (reg11, bi ts 7:6) to select saif (tx and rx) interface input clock when the saif is configured in master mode. in master mode, the saif generates a bclk and an lrclk from the selected clock source. when in slave mode the saif uses the input pins saif_bclk (mfp6) and saif_lrclk (mfp7). saif_clksel_i internally generated multiplexer select bits to select saif clock source ? generated based on saif_clksel register bits and di gital routing c onfiguration. table 33 definition of signal names for purpose of description
production data WM8580A w pd, rev 4.9, november 2013 43 it is possible to override any autoconfiguration of clocks, allowing the user to manually select an available clock for a particular interface using the appropriate clksel register bits. the autoconfiguration can be overridden using the clksel_m an bit (reg6, bit 6). great care must to used when overriding autoconfigured clocking.this is described in manual clock selection section. the sample rate at which the dac, adc and s/pdif interfaces operate is configurable. the rate of operation is determined by the available lrclk at the interface and how the interface is configured ? master or slave mode. the available options are described in the sections which follow. the paif and saif generate a blck and lrclk if in master mode. in slave mode they use the clocks from input pins. dac interface the dacs are driven from an internal clock called the dac_clk. the dac_clksel bits (reg8, bits 1:0) select a clock to drive the dac and the possible sources of dac_clk are mclk, pllaclk or pllbclk. the digital routing can override the programmed dac_clksel register bits. for example, if dac1 is sourcing the s/pdif receiver, then pllaclk is automatically selected as the dac_clk. figure 26 illustrates the dac clock selection and the dac rate selection (see next section). figure 26 dac clock and dac rate selection dac rate selection the sampling rate at which a dac operates is determined by the dac rate module, which is part of the dac. the dac rate module divides down the dac_clk and calculates the rate at which the dac operates based on the dac_clk and the dac_rate_sel (refer to figure 26). the dac_rate_sel is generated based on the digital routing setup, and selects between 128/192/256/384/512/768/1152fs.table 34 describes which clock is used to calculate the dac rate.
WM8580A production data w pd, rev 4.9, november 2013 44 dac data source clock used for dac rate generator (fs) comments dac1 =paifrx paifrx_lrclk dac sample rate based on paif rx dac1=saifrx saifrx_lrclk dac sample rate based on saif rx dac1=s/pdifrx (dac2/3 also used) sfrm_clk or paifrx_lrclk rx2dac_mode bit selects between the sfrm_clk (default) and the paifrx_lrclk. dac1=s/pdifrx (dac2/3 not used) sfrm_clk set rx2dac_mode=0 dac1=s/pdifrx dac 2/3 = paifrx paifrx_lrclk need to synchronise the dacs to use the a common lrclk.set rx2dac_mode=1 and s/pdif rx sampling rate must be synchronous to paif_lrclk table 34 dac sample rate selection if dacs 2 and 3 source the paifrx, while dac 1 sources the s/pdifrx then to synchronize all dacs together, the dac rate generator needs to use a common lrclk. in this case, the paifrx_lrclk should be used. this is done by setting register bit rx2dac_mode=1, allowing the paif_lrclk to be used to generate the sampling rate. in this case, the s/pdif sampling rate must be synchronised with paif_lrclk. in addition, when using the s/pdif receiver, the pllaclk and pllbclk are not available to the dacs, and the dac_clk applied to the dacs must be at a standard audio rate. register address bit label default description r8 clksel 08h 1:0 dac_clksel 00 dac clock source 00 = mclk pin 01 = pllaclk 10 = pllbclk 11 = mclk pin r15 dac control 1 0fh 8 rx2dac_mode 0 dac oversampling rate and power down control (only valid when dac_src = 00, dac1 data sourced from s/pdif receiver) 0 = sfrm_clk determines oversampling rate, dacs 2/3 powered down 1 = paifrx_lrclk determines oversampling rate, dacs 2/3 source paif receiver table 35 dac clock control
production data WM8580A w pd, rev 4.9, november 2013 45 adc interface the adc_clksel register selects the adc_clk clock source from adcmclk, pllaclk, pllbclk, or mclk. if the s/pdif receiver is enabled, pllaclk and pllbclk are invalid for adc operation, so the choice is limited to adcmclk (default) or mclk. figure 27 illustrates this. 00 01 10 11 mclk adcmclk (mfp2) pllaclk pllbclk adc adc rate select adc_rate (r29[7:5]) paiftx_lrclk saif_lrclk (mfp7) adc_clk 0 1 tie 11 11 00,01,11 tie 00 adc_clksel(r8[3:2]) spdifrx_en adc_clksel_i if the s/pdif rx is enabled, then adc_clk is forced to adcmclk (when adc_clksel = 00,01 or 10) or adc_clk is forced to mclk pin (when adc_clksel=11) if the s/pdif rx is disabled then adc_clksel controls the adc_clk clock selection adc_rate_sel figure 27 adc clock and adc rate selection the sample rate at which the adc operates is determined by the adc rate module. which is part of the adc. the adc rate module divides down the adc_clk and calculates the rate at which the adc operates based on the adc_clk, the adc_rate and the digital routing setup. these 3 things combine to generate the adc_rate_sel. table 36 summarises the sample rate selection based on what sources the adc output. adc data destination clock used for adc rate generator (fs) comments paiftx =adc paiftx_lrclk adc sample rate based on paif tx saiftx =adc saif_lrclk assumes that paif sources another interface then adc sample rate based on saif tx s/pdiftx =adc adc_rate adc sample rate determined by the adc_rate register bits r29,bits 7:5 table 36 adc rate selection the adc_clk clock source can be independent from the dacs and plls, however for optimum performance it is recommended that clock sources on the WM8580A are synchronous. if this condition is not met, performance may be degraded.
WM8580A production data w pd, rev 4.9, november 2013 46 register address bit label default description r8 clksel 08h 3:2 adc_clksel 00 adc clock source 00 = adcmclk pin 01 = pllaclk 10 = pllbclk 11 = mclk pin r29 adc control 1 1dh 7:5 adcrate[2:0] 010 adc rate control (only used when the s/pdif transmitter is the only interface sourcing the adc) 000 = 128fs 001 = 192fs 010 = 256fs 011 = 384fs 100 = 512fs 101 = 768fs 110 = 1152fs table 37 adc clock control
production data WM8580A w pd, rev 4.9, november 2013 47 s/pdif interfaces the tx_clksel register selects s/pdif transmitter clock, tx_clk, from adcmclk, pllaclk, pllbclk, or mclk. figure 28 illustrates how the clock is selected. the s/pdif receiver only uses pllaclk, but both pllaclk and pllbclk are unavailable in user mode when the s/pdif receiver is active. if the digital routing is configured such that the s/pdif transmitter is sourcing the s/pdif receiver, then pllaclk is automatically selected. figure 28 s/pdif tx clock and rate selection the rate at which the s/pdif transmitter operates is determined by the s/pdif transmitter rate module which is part of the s/pdif tx interfac e. the transmitter rate module calculates the rate based on the digital routing setup. table 38 summarises the sample rate selection based on the s/pdiftx interface source data. s/pdif tx data source clock used for s/pdif rate generator (fs) comments s/pdif tx = s/pdif rx sfrm_clk s/pdif tx sample rate based on s/pdif rx s/pdif tx = paif rx paifrx_lrclk s/pdif tx sample rate based on paif rx s/pdif tx = saif rx saifrx_lrclk s/pdif tx sample rate based on saif rx s/pdif tx = adc paiftx_lrclk or the adc_rate paiftx_lrclk if paiftx also sources the adc. adc_rate register otherwise. table 38 s/pdif tx rate selection
WM8580A production data w pd, rev 4.9, november 2013 48 register address bit label default description r8 clksel 08h 5:4 tx_clksel 01 s/pdif transmitter clock source 00 = adcmclk pin 01 = pllaclk 10 = pllbclk 11 = mclk pin table 39 s/pdif transmitter clock control primary audio interface receiver (paif rx) the paif receiver requires a left-right-clock (lrclk) and a bit-clock (bclk). these can be supplied externally (slave mode) or they can be generated internally by the WM8580A (master mode). register r9, bit 5 selects master or slave mode. in slave mode, the bclk and lrclk driving the paif rx interface are the paifrx_bclk and the paifrx_lrclk pins. in master mode the bclk and lrclk driving the paif rx are generated by the master mode clock gen module. the control of this module is described on page 22. the clock supplied to this module is selected by the paifrxms_clksel register bits. these bits select either mclk, pllaclk, or pllbclk unless the s/pdif rx interface is enabled in which case the paif rx clock is forced to use the mclk pin since the plla and pllb are not available in this mode. figure 29 paif rx interface clock configuration register address bit label default description r9 paif 1 09h 7:6 paifrxms_ clksel 00 paif receiver master mode clock source 00 = mclk pin 01 = pllaclk 10 = pllbclk 11 = mclk pin table 40 paif rx master mode clock control
production data WM8580A w pd, rev 4.9, november 2013 49 primary audio interface transmitter (paif tx) the paif transmitter requires a left-right-clock (lrclk) and a bit-clock (bclk). these can be supplied externally (slave mode) or they can be generated internally by the WM8580A (master mode). register r10, bit 5 selects master or slave mode. in slave mode, the bclk driving the paif tx interface is either the paiftx_bclk pin (default) or the paifrx_bclk pin (if adc is using mclk pin). the lrclk driving the paif tx interface is the paifrx_lrclk in master mode the bclk and lrclk driving the paif tx interface are generated by the master mode clock gen module. the control of this module is described on page 22. the clock supplied to the master mode clock gen module can be adcmclk, pllaclk, pllbclk, or mclk. selection is automatic and is based on the digital routing configuration. figure 30 illustrates the clock configuration and table 41 gives some examples of clock routing based on digital routing configuration. figure 30 paif tx interface clock configuration digital routing configuration clock used by paif tx master mode clock generator comments paif tx = s/pdif rx pllaclk recommend to operate paif tx in master mode paif tx = saif rx same as adc_clk paif tx selects the same as adc_clk_i table 41 paif tx clock configuration examples secondary audio interfaces (saif rx & saif tx) the saif transmit and receive interfaces share a common lrclk and a common bclk. these can be supplied externally (slave mode) or they can be generated internally by the WM8580A (master mode). register r11, bit 5 selects master or slave mode. in slave mode, the bclk driving the saif interface is the saif_bclk pin and the lrclk driving the saif interface is the saif_lrclk pin
WM8580A production data w pd, rev 4.9, november 2013 50 in master mode the bclk and lrclk driving the saif interface are generated by the master mode clock gen module. the control of this module is described on page 22. the clock supplied to the master mode clock gen module can be adcmclk, pllaclk, pllbclk, or mclk. selection is automatic and is based on the digital routing configuration. figure 31 illustrates the clock configuration and table 41 gives some examples of clock routing based on digital routing configuration. if the digital routing is configured such that the saif transmitter is sourcing the s/pdif receiver, then pllaclk is automatically selected, and it is recommended that the interface operate in master mode. however, if the saif transmitter sources something other than the s/pdif receiver and the s/pdif receiver is powered up, then the pllaclk and pllbclk are invalid for saif operation, so the choice forced to mclk (default) or adcmclk. figure 31 saif interface clock configuration digital routing configuration clock used by saif master mode clock generator comments saif tx = s/pdif rx pllaclk recommend to operate saif in master mode saif tx = paif rx mclk set saifms_clksel = 11 table 42 saif clock configuration examples register address bit label default description r11 saif 1 0bh 7:6 saifms_ clksel 11 saif master mode clock source 00 = adcmclk pin 01 = pllaclk 10 = pllbclk 11 = mclk pin table 43 saif master mode clock control
production data WM8580A w pd, rev 4.9, november 2013 51 manual clock selection it is possible to override all default clocking configuration restrictions by setting clksel_man. when clksel_man is set, default clocking configurations such as automatic selection of pllaclk for dac1 when dacsrc=00 (s/pdif received data) are not applied. instead, clock selection is determined only by the relevant clk_sel register. figure 32 to figure 37 illustrate this over-ride capability. register address bit label default description r8 clksel 08h 6 clksel_man 0 clock selection auto-configuration override 0 = auto-configuration enabled 1 = auto-configuration disabled, clock configuration follows relevant clksel bits in r8 to r11. table 44 manual clock selection figure 32 manual clock over-ride of dac clock figure 33 manual clock over-ride of adc clock figure 34 manual clock over-ride of s/pdif tx clock
WM8580A production data w pd, rev 4.9, november 2013 52 figure 35 manual clock over-ride of paif tx figure 36 manual clock over-ride of paif rx figure 37 manual clock over-ride of saif
production data WM8580A w pd, rev 4.9, november 2013 53 phase-locked loops and s/pdif clocking (software mode) the WM8580A is equipped with two independent phase-locked loop clock generators and a comprehensive clocking scheme which provides maximum flexibility and function and many configurable routing possibilities for the user in software mode. an overview of the software mode clocking scheme is shown in figure 38. pll_a ( r = f 2 / f 1 ) div div f 1 oscclk f 2 div pllaclk osc clkout xout xin s/pdif rx pll_b ( r = f 2 / f 1 ) div f 1 f 2 div div pllbclk pllbclk oscclk pllaclk mclk pllbclk oscclk pllaclk clk2 clk1 figure 38 pll and clock select circuit oscillator the function of the oscillator is to generate the oscclk oscillator clock signal. this signal may be used as: ? the clock source for the plls. ? a selectable clock source for the mclk pin, when the pin is configured as an output. ? a selectable clock source for the clkout pin, when enabled. whenever the plls or the s/pdif receiver is enabled, the oscclk signal must be present to enable the plls to generate the necessary clock signals. the oscillator uses a pierce type oscillator drive circuit. this circuit requires an external crystal and appropriate external loading capacitors. the oscill ator circuit contains a bias generator within the WM8580A and hence an external bias resistor is not required. crystal frequencies between 10 and 14.4mhz or 16.28mhz and 27mhz can be used in software mode. in this case the oscillator xout must be powered up using the oscpd bit. the recommended circuit is shown in the recommended components diagram, please refer to figure 55. alternatively, an external cmos compatible clock signal can be applied to the xin pin in the absence of a crystal. this is not recommended when using the pll as the pll requires a jitter-free oscclk signal for optimum performance. in this case the oscillator xout can be powered down using the oscpd bit.
WM8580A production data w pd, rev 4.9, november 2013 54 the oscillator xout pin has one control bit as shown in table 45. register address bit label default description r51 pwrdn 2 33h 0 oscpd 0 oscillator xout power down 0 = power up xout (crystal mode) 1 = power down xout (cmos clock input mode) table 45 oscillator control phase-locked loop (pll) the WM8580A has two on-chip phase-locked loop (pll) circuits which can be used to synthesise two independent clock signals (pllaclk and pllbclk) from the external oscillator clock. the plls can be used to: ? generate clocks necessary for the s/pdif receiver to lock on to and recover s/pdif data from an incoming s/pdif data stream. ? generate clocks which may be used to drive the mclk and/or clkout pins. ? generate clocks which may be used by the s/pdif transmitter to encode and transmit a s/pdif data stream. ? generate clocks which may be used as the master clock source for the the adc and dacs. ? generate clocks which may be used by the master mode clock generator to generate the bclk and lrclk signals for the digital audio interfaces. the plls can be enabled or disabled using the register bits shown in table 46. register address bit label default description r51 pwrdn 2 33h 1 pllapd 1 pll power down control 0 = power up pll 1 = power down pll 2 pllbpd 1 table 46 pll power down control the plls have two modes of operation: ? pll s/pdif receive mode (selected if s/pdif receiver enabled) in s/pdif receive mode, plla is automatically controlled by the s/pdif receiver to allow the receiver to use plla to track and lock on to the incoming s/pdif data stream. in this case, clk1 is automatically maintained at a constant frequency of 256fs relative to the sample rate of the recovered s/pdif stream. pllb must be configured to produce clk2, a specific reference clock for the s/pdif receiver. pllaclk may be used as a 256fs or 128fs (selectable ? refer to table 51) master clock source when in s/pdif receiver mode. pllbclk is not available and must not be selected as the clock source for any internal function when the s/pdif receiver is enabled. if the sample frequency of the incoming stream is changed and plla is forced to unlock in order to track to the new sample frequency, the pllaclk signal will be stopped until the s/pdif receiver has locked to the incoming stream at the new sample frequency. if the incoming s/pdif stream stops, the plla_ n and plla_k values will be frozen and the pllaclk will continue at the frequency set by the last recovered s/pdif stream. refer to table 47 and table 49 for details of the registers available for configuration in this mode. refer to the s/pdif receive mode clocking section on page 59 for full details.
production data WM8580A w pd, rev 4.9, november 2013 55 ? pll user mode (selected if s/pdif receiver disabled) in user mode, the user has full control over the function and operation of both plla and pllb. in this mode, the user can accurately specify the pll n and k multiplier values and the pre and post-scale divider values and can hence fully control the generated clock frequencies. refer to table 47 and table 49 for details of the registers available for configuration in this mode. register address bit label default description r0 plla 1/ devid1 00h 8:0 plla_k[8:0] 100100001 fractional (k) part of plla frequency ratio ii . value k is one 22-digit binary number spread over registers r0, r1 and r2 as shown. r1 plla 2/ devid2 01h 8:0 plla_k[17:9] 101111110 r2 plla 3/ devrev 02h 3:0 plla_k[21:18] 1101 7:4 plla_n[3:0] 0111 integer (n) part of plla frequency ratio. i use values in the range 5 plla_n 13 as close as possible to 8 r4 pllb 1 04h 8:0 pllb_k[8:0] 100100001 fractional (k) part of pllb frequency ratio i. value k is one 22-digit binary number spread over registers r4, r5 and r6 as shown. note: pllb_k must be set to specific values when the s/pdif receiver is used. refer to s/pdif receive mode clocking section for details. r5 pllb 2 05h 8:0 pllb_k[17:9] 101111110 r6 pllb 3 06h 3:0 pllb_k[21:18] 1101 7:4 pllb_n[3:0] 0111 integer (n) part of pllb frequency rat  atioii(r). use values in the range 5 pllb_n 13 as close as possible to 8 note: pllb_n must be set to specific values when the s/pdif receiver is used. refer to s/pdif receive mode clocking section for details. table 47 user mode pll_k and pll_n multiplier control parameter pll user mode pll s/pdif receiver mode prescale_a manual write prescale_b value prescale_b manual configure specified pllb frequency plla_n manual automatically controlled plla_k manual automatically controlled pllb_n manual configure specified pllb frequency pllb_k manual configure specified pllb frequency freqmode_a manual automatically controlled freqmode_b manual not used postscale_a manual 256fs/128fs pllaclk select postscale_b manual not used table 48 pll control register function in pll user and pll s/pdif receiver modes
WM8580A production data w pd, rev 4.9, november 2013 56 pll configuration the plls perform a configurable frequency multiplication of the input clock signal (f 1 ). the multiplication factor of the pll (denoted by ?r?) is variable and is defined by the relationship: r = (f 2 f 1 ). the multiplication factor for each pll is set using register bits pllx_n and pllx_k (refer to table 47). the multiplication effect of both the n and k multipliers are additive (i.e. if n is configured to provide a multiplication factor of 8 and k is configured to provide a multiplication factor of 0.192, the overall multiplication factor is 8 + 0.192 = 8.192). in order to choose and configure the correct values for pllx_n and pllx_k, multiplication factor r must first be calculated. once value r is calculated, the value of pllx_n is the integer (whole number) value of r, ignoring all digits to the right of the decimal point. for example, if r is calculated to be 8.196523, pll_n is simply 8. once pllx_n is calculated, the pllx_k value is simply the integer value of (2 22 (r-pllx_n)). for example, if r is 8.196523 and pllx_n is 8, pllx_k is therefore (2 22 (8.196523-8)), which is 824277 (ignoring all digits to the right of the decimal point). note: the plls are designed to operate with best performance (shortest lock time and optimum stability) when f 2 is between 90 and 100mhz and pllx_n is 8. however, acceptable pllx_n values lie in the range 5 pllx_n 13. each pll has an output divider to allow the f 2 clock signal to be divided to a frequency suitable for use as the source for the mclk and clkout outputs, the s/pdif transmitter and the internal adc and dacs. the divider output is configurable and is set by the freqmode_a or freqmode_b bits in conjunction with the postscale_a and postscale_b bits. each pll is also equipped with a pre-scale divider which offers frequency divide by one or two before the oscclk signal is input into the pll. please refer to table 49 for details. register address bit label default description r3 plla 4 03h 0 prescale_a 0 pll pre-scale divider select 0 = divide by 1 (pll input clock = oscillator clock) 1 = divide by 2 (pll input clock = oscillator clock ? 2) note: prescale_a must be set to the same value as prescale_b in pll s/pdif receiver mode. r7 pllb 4 07h 0 prescale_b 0 r3 plla 4 03h 4:3 freqmode_a [1:0] 10 pll output divider select pll s/pdif receiver mode freqmode_a is automatically controlled. freqmode_b is not used. pll user mode used in conjunction with the postscale_x bits. refer to table 50. r7 pllb 4 07h 4:3 freqmode_b [1:0] 10 r3 plla 4 03h 1 postscale_a 0 pll post-scale divider select pll s/pdif receiver mode postscale_a is used to configure a 256fs or 128fs pllaclk, postscale_b is not used. refer to table 51. pll user mode used in conjunction with the freqmode_x bits. refer to table 50. r7 pllb 4 07h 1 postscale_b 0 table 49 pre and post pll clock divider control
production data WM8580A w pd, rev 4.9, november 2013 57 freqmode_x[1:0] f 2 to pllxclk division factor postscale_x 0 1 00 2 4 01 4 8 10 8 16 11 12 24 table 50 pll user mode clock divider configuration postscale_a pllaclk frequency 0 256fs 1 128fs table 51 pll s/pdif receiver mode clock divider configuration pll configuration example consider the situation where the oscillator clock (oscclk) input frequency is fixed at 12mhz and the required pllbclk frequency is 12.288mhz. 1. calculate the f 2 , freqmode_b and postscale_b values the pll is designed to operate with best performance when the f 2 clock is between 90 and 100mhz. the necessary pllbclk frequency is 12.288mhz. choose postscale_b and freqmode_b values to set the f 2 frequency in the range of 90 to 100mhz. in this case, the default values (postscale_b = 0 and freqmode_b[1:0] = 10) will configure the f 2 to pllbclk divider as 8 and hence will set the f 2 frequency at 98.304mhz; this value is within the 90 to 100mhz range and is hence acceptable. ? postscale_b = 0 ? freqmode_b [1:0] = 10b ? f 2 = 98.304mhz 2. calculate r value using the relationship: r = (f 2 f 1 ), the value of r can be calculated. ? r = (f 2 f 1 ) ? r = (98.304 12) ? r = 8.192 3. calculate pllb_n value the value of pllb_n is the integer (whole number) value of r, ignoring all digits to the right of the decimal point. in this case, r is 8.192, hence pllb_n is 8. 4. calculate pll_k value the pllb_k value is simply the integer value of (2 22 (r-pllb_n)). ? pllb_k = integer part of (2 22 x (8.192 ? 8)) ? pllb_k = integer part of 805306.368 ? pllb_k = 805306 (decimal) / c49ba (hex) a number of example configurations are shown in table 52. many other configurations are possible; table 52 shows only a small number of valid possibilities. as both plls are identical, the same configuration procedure applies for both.
WM8580A production data w pd, rev 4.9, november 2013 58 osc clk (mhz) pre- scale _x f 1 (mhz) f 2 (mhz) r pllx_n (hex) pllx_k (hex) freq mode_x [1:0] post- scale_x pllxclk (mhz) 12 0 12 98.304 8.192 8 c49ba 00 1 24.576 12 0 12 98.304 8.192 8 c49ba 01 0 24.576 12 0 12 98.304 8.192 8 c49ba 01 1 12.288 12 0 12 98.304 8.192 8 c49ba 10 0 12.288 12 0 12 98.304 8.192 8 c49ba 10 1 6.144 12 0 12 98.304 8.192 8 c49ba 11 0 8.192 12 0 12 98.304 8.192 8 c49ba 11 1 4.096 24 1 12 90.3168 7.5264 7 21b089 00 1 22.5792 24 1 12 90.3168 7.5264 7 21b089 01 0 22.5792 24 1 12 90.3168 7.5264 7 21b089 01 1 11.2896 24 1 12 90.3168 7.5264 7 21b089 10 0 11.2896 24 1 12 90.3168 7.5264 7 21b089 10 1 5.6448 24 1 12 90.3168 7.5264 7 21b089 11 0 7.5264 24 1 12 90.3168 7.5264 7 21b089 11 1 3.7632 27 1 13.5 98.304 7.2818 7 1208a5 00 1 24.576 27 1 13.5 98.304 7.2818 7 1208a5 01 1 12.288 27 1 13.5 90.3168 6.6901 6 2c2b24 00 1 22.5792 27 1 13.5 90.3168 6.6901 6 2c2b24 01 1 11.2896 table 52 user mode pll configuration examples when considering settings not shown in this table, the key configuration parameters which must be selected for optimum operation are: ? 90mhz f 2 100mhz ? 5 pllx_n 13 ? oscclock = 10 to 14.4mhz or 16.28 to 27mhz clock output (clkout) and mclk output (mclk) the clock output (clkout) pin can be used as a clock output. this pin is intended to be used as a clock source pin for providing the central clock reference for an audio system. the clkout clock source can be selected from oscclk, pllaclk or pllbclk. the control bits for the clkout signal are shown in table 53. the mclk pin can be configured as an input or output ? the WM8580A should be powered down when switching mclk between an input and an output. as an output, mclk can be sourced from oscclk, pllaclk or pllbclk. register address bit label default description r7 pllb 4 07h 6:5 mclkoutsrc 00 mclk pin output source 00 = input ? source mclk pin 01 = output ? source pllaclk 10 = output ? source pllbclk 11 = output ? source oscclk 8:7 clkoutsrc 11 clkout pin source 00 = no output (tristate) 01 = output ? source pllaclk 10 = output ? source pllbclk 11 = output ? source oscclk table 53 mclk and clkout control
production data WM8580A w pd, rev 4.9, november 2013 59 s/pdif receive mode clocking in s/pdif receive mode, the plla_n and plla_k values are automatically controlled by the s/pdif receiver to allow the receiver to use plla to lock on to and track the incoming s/pdif data stream. pllb must be configured to produce a specific reference clock frequency for the s/pdif receiver. the s/pdif receiver has three clocking modes based on the incoming s/pdif stream sample rate. the modes are: ? mode 1: incoming s/pdif sample rate = 88.2khz -1% to 96khz +1% ? mode 2: incoming s/pdif sample rate = 44.1khz -1% to 48khz +1% ? mode 3: incoming s/pdif sample rate = 32khz +/- 1% before the s/pdif receiver is enabled, it is im portant that the pllb_n and pllb_k register values (and the prescale_x values as appropriate) ar e manually configured in a specific default state. note that the prescale_a value must always be set to the same value as prescale_b. the specified pllb f 2 frequency that must be configured using the pllb_n and pllb_k register values (and the prescale_x values as appropriate) for reception of specific s/pdif sample rates is as follows: ? modes 1/2/3 (32/44.1/48/88.2/96khz sample rates): pllb f 2 = 94.3104mhz the freqmode_b[1:0] bits and postscale_b bit are not used in pll s/pdif receiver mode. the pll register settings are configured by default to allow s/pdif receiver operation using a 12mhz crystal clock. the appropriate pllb register values must be updated if any crystal clock frequency other than 12mhz is used. refer to table 54 for details of a number of recommended pllb configurations. many other configurations are possible; please refer to pll configuration section for details regarding how to calculate alternative settings. osc clk (mhz) pre- scale_x s/pdif receiver sample rate(s) (khz) f1 (mhz) f2 (mhz) r pllb_n (hex) pllb_k (hex) comment 11.2896 0 32 / 44.1 / 48 / 88.2 / 96 11.2896 94.3104 8.3537 8 16a3b3 set n, k 12 0 32 / 44.1 / 48 / 88.2 / 96 12 94.3104 7.8592 7 36fd21 default setting 12.288 0 32 / 44.1 / 48 / 88.2 / 96 12.288 94.3104 7.675 7 2b3333 set k 19.2 1 32 / 44.1 / 48 / 88.2 / 96 9.6 94.3104 9.824 9 346c6a set prescales, n, k 24 1 32 / 44.1 / 48 / 88.2 / 96 12 94.3104 7.8592 7 36fd21 set prescales 27 1 32 / 44.1 / 48 / 88.2 / 96 13.5 94.3104 6.986 6 3f19e5 set prescales, n, k table 54 s/pdif receive mode pllb initial configuration examples the recommended configuration sequences are as follows: to initially configure the system for s/pdif receiver startup: 1. disable the plla and pllb by seting the pllapd and pllbpd bits 2. write appropriate calculated values (relative to oscillator frequency) to prescale_a, prescale_b, pllb_n and pllb_k. 3. enable s/pdif receiver by clearing the spdifrxpd and spdifpd bits. 4. enable plla and pllb by clearing the pllapd and pllbpd bits.
WM8580A production data w pd, rev 4.9, november 2013 60 phase-locked loops and s/pdif clocking (hardware mode) in hardware mode, the user has no access to the internal clocking control registers and hence a default configuration is loaded at reset to provide maximum functionality. the s/pdif receiver is enabled and hence the plls operate in s/pdif receiver mode and all pll and s/pdif receiver control is fully automatic. all supported s/pdif receiver sample rates can be used. freqmode_x and postscale_x control is fully automatic to ensure that the internal mclk is maintained at 256fs relative to the s/pdif received sample rate. in hardware mode, the internal mclk is not available at the mclk pin (the pin defaults to an input) in hardware mode, the oscclk must be 12mhz and hence the external crystal (or applied xin clock) must be 12mhz. no other oscclk frequencies are supported in hardware mode. s/pdif transceiver features ? iec-60958-3 compatible with 32k frames/s to 96k frames/s support ? support for reception and transmission of s/pdif data ? clock synthesis pll with reference clock input and ultra-low jitter output ? input mux with support for up to four s/pdif inputs ? register controlled channel status recovery and transmission ? register read-back of recovered channel status bits and error flags ? detection of non-audio data, sample rate, and pre-emphasised data ? programmable gpo for error flags, frame status flags and clocks an iec-60958-3 compatible s/pdif transceiver is integrated into the WM8580A. operation of the s/pdif function may be synchronous or asynchr onous to the rest of the digital audio circuits. the receiver performs data and clock recovery, and sends recovered data either to an external device such as a dsp (via the digital audio interfaces), or if the data is audio pcm, it can route the stereo recovered data to dac1. the recovered clock may be routed out of the WM8580A onto a pin for external use, and may be used to clock the internal dac as required. the transmitter generates s/pdif frames where audio data may be sourced from the adc, s/pdif receiver, or the digital audio interfaces. s/pdif format s/pdif is a serial, bi-phase-mark encoded data stream . an s/pdif frame consists of two sub-frames. each sub-frame is made up of: ? preamble ? a synchronization pattern used to identify the start of a 192-frame block or sub- frame ? 4-bit auxiliary data (aux) ? ordered lsb to msb ? 20-bit audio data (24-bit when combined with aux) ? ordered lsb to msb ? validity bit ? a 1 indicates invalid data in that sub-frame ? user bit ? over 192-frames, this forms a user data block, ? channel bit ? over 192-frames, this forms a channel status block ? parity bit ? used to maintain even parity over the sub-frame (except the preamble) an s/pdif block consists of 192 frames. channel and user blocks are incorporated within the 192- frame s/pdif block. for consumer mode only the first 40-frames are used to make up the channel and user blocks. figure 39 illustrates the s/pdif format.
production data WM8580A w pd, rev 4.9, november 2013 61 . . . . . . . . . frame 192 frame 1 subframe 1 subframe 2 sync preamble aux v u c p audio sample word 3 4 7 8 27 28 0 31 32 bit word figure 39 s/pdif format s/pdif transmitter the s/pdif transmitter generates the s/pdif frames, and outputs on the spdifop pin. the audio data for the frame can be taken from one of four sources, selectable using the txsrc register. the transmitter can be powered down using the spdiftxd register bit. the s/pdif transmitter can be bypassed by setting the real_through register control bit. when set, the spdifop pin sources the output of the s/pdif input mux. register address bit label default description r30 spdtxchan 0 1eh 1:0 txsrc[1:0] 00 s/pdif transmitter data source 00 = s/pdif received data (see real_through) 01 = adc digital output data. 10 = secondary audio interface 11 = audio interface received data 2 ovwchan 0 overwrite channel status only used if txsrc=00. overwrites the received channel status data using data read from s/pdif transmitter channel status register 0 = channel data equal to recovered channel data. 1 = channel data taken from channel status registers. 3 real_ through 0 s/pdif through mode control 0 = spdifop pin sources output of s/pdif transmitter 1 = spdifop pins sources output of s/pdif in mux 4 txval_ ovwr 0 s/pdif transmitter validity overwrite mode 0 = disabled, validity bit is 0 when transmitter sources adc, paif or saif, or is matches the s/pdif input validity when s/pdif transmitter sources s/pdif receiver. 1 = enabled, validity bit transmitted for subframe 0 is defined by txval_sf0, validity bit transmitted for subframe 1 is defined by txval_sf1. 5 txval_sf0 0 overwrite mode s/pdif transmitter validity sub-frame 0 0 = transmit validity = 0 1 = transmit validity = 1 6 txval_sf1 0 overwrite mode s/pdif transmitter validity sub-frame 1 0 = transmit validity = 0 1 = transmit validity = 1 r51 pwrdn 2 33h 4 spdiftxd 1 s/pdif transmitter powerdown 0 = s/pdif transmitter enabled 1 = s/pdif transmitter disabled table 55 s/pdif transmitter control
WM8580A production data w pd, rev 4.9, november 2013 62 the WM8580A also transmits the preamble and vucp bits (validity, user data, channel status and parity bits). validity bit by default, set to 0 (to indicate valid data) with the following exceptions: 1. txsrc=00 (s/pdif receiver), where validity is the value recovered from the s/pdif input stream by the s/pdif receiver. 2. txval_ovwr=1, where validity is the value set in registers txval_sf0 and txval_sf1. user data set to 0 as user data configuration is not supported in the WM8580A ? if txsrc=00 (s/pdif receiver) user data is the value recovered from the s/pdif input stream by the s/pdif receiver. channel status the channel status bits form a 192 frame ?lock - transmitted at one bit per sub-frame. each sub- frame forms its own 192-frame block. the WM8580A is a consumer mode device and only the first 40 bits of the block are used. all data transmitted from the WM8580A is stereo, so the channel status data is duplicated for both channels. the only exception to this is the channel number bits (23:20) which can be changed to indicate whether the channel is left or right in the stereo image. bits within this block can be configured by setting the channel status bit control registers (see table 56 to table 60). if txsrc=00 (s/pdif receiver), the channel status bits are transmitted with the same values recovered by the receiver ? unless ovwchan is set, in which case they are set by the s/pdif transmitter channel status registers. parity bit this bit maintains even parity for data as a means of basic error detection. it is generated by the transmitter. for further details of all channel status bits, refer to iec-60958-3. register address bit label channel status bit default description r31 spdtxchan 1 1fh 0 con/pro 0 0 0 = consumer mode 1 = professional mode (not supported by WM8580A) 1 audio_n 1 0 linear pcm identification 0 = s/pdif transmitted data is audio pcm. 1 = s/pdif transmitted data is not audio pcm. 2 cpy_n 2 0 0 = transmitted data has copyright asserted. 1 = transmitted data has no copyright assertion. 5:3 deemph[2:0] 5:3 000 000 = data from audio interface has no pre- emphasis. 001 = data from audio interface has pre- emphasis. 010 = reserved (audio interface has pre- emphasis). 011 = reserved (audio interface has pre- emphasis). all other modes are reserved and should not be used. 7:6 chstmode [1:0] 7:6 00 00 = only valid mode for consumer applications. table 56 s/pdif transmitter channel status bit control 1
production data WM8580A w pd, rev 4.9, november 2013 63 register address bit label channel status bit default description r32 spdtxchan 2 20h 7:0 catcode [7:0] 15:8 00000000 category code. refer to s/pdif specification iec60958-3 for details. 00h indicates ?general? mode. table 57 s/pdif transmitter channel status bit control 2 register address bit label channel status bit default description r33 spdtxchan 3 21h 3:0 srcnum [3:0] 19:16 0000 indicates s/pdif source number. no definitions are attached to data. 5:4 chnum1[1:0] 21:20 23:22 00 channel number for subframe 1 chnum1 function 00 do not use channel number 01 send to left channel 10 send to right channel 11 do not use channel number 7:6 chnum2[1:0] 00 channel number for subframe 2 chnum2 function 00 do not use channel number 01 send to left channel 10 send to right channel 11 do not use channel number table 58 s/pdif transmitter channel status bit control 3 register address bit label channel status bit default description r34 spdtxchan 4 22h 3:0 freq[3:0] 27:24 0001 sampling frequency indicated see s/pdif specification iec60958-3 for details. 0001 = sampling frequency not indicated. 5:4 clkacu[1:0] 29:28 11 clock accuracy of transmitted clock. 00 = level ii 01 = level i 10 = level iii 11 = interface frame rate not matched to sampling frequency. table 59 s/pdif transmitter channel status bit control 4
WM8580A production data w pd, rev 4.9, november 2013 64 register address bit label channel status bit default description r35 spdtxchan 5 23h 0 maxwl 32 1 maximum audio sample word length 0 = 20 bits 1 = 24 bits 3:1 txwl[2:0] 35:33 101 audio sample word length. 000 = word length not indicated txwl[2:0] maxwl==1 maxwl==0 001 20 bits 16 bits 010 22 bits 18 bits 100 23 bits 19 bits 101 24 bits 20 bits 110 21 bits 17 bits all other combinations reserved 7:4 orgsamp [3:0] 39:36 0000 original sampling frequency. see s/pdif specification for details. 0000 = original sampling frequency not indicated table 60 s/pdif transmitter channel status bit control 5 s/pdif receiver input selector the s/pdif receiver has one dedicated input, spdifin1. this pin is a iec-60958-3-compatible comparator input by default or, if spdifin1mode is set, the pin will be a cmos-compatible input. there are three other pins which can be configured as either s/pdif inputs or general purpose outputs (gpos). the four s/pdif inputs are multiplexed to allow one input to go to the s/pdif receiver for decoding. the s/pdif receiver can be powered down using the spdifrxd register bit.
production data WM8580A w pd, rev 4.9, november 2013 65 table 61 s/pdif receiver input selection register audio data handling the s/pdif receiver recovers the data and vucp bits from each sub-frame. if the s/pdif input data is in a non-compressed audio format the data can be internally routed to the stereo data input of dac1. the WM8580A can detect when the data is in a non-compressed audio format and will automatically mute the dac. see non-audio detection section for more detail. the received data can also be output over the digital audio interfaces in any of the data formats supported. this can be performed while simultaneously using dac1 for playback. the received data may also be re-transmitted via the s/pdif transmitter. user data the WM8580A can output recovered user data received using gpo pins. see table 72 for general purpose pin control information. channel status data the channel status bits are recovered from the incoming data stream and are used to control various functions of the device. the s/pdifrx interface always receives 24 bits of data in bits 4 to 27 of the spdif payload. the audio sample can be either 20 bits if aux bits not used or up to 24bits if aux bits used (refer to figure 39). so the audio sample can be 20,21,22,23 or 24 bit. the source (wherever the s/pdif data is coming from) of the s/pdif data stream must set the maxwl and rxwl within the status bits to indicate the size of the audio sample. this is then recovered by the s/pdif rx interface. the s/pdif rx interface always receives 24 bits, but if the actual length of the audio data sample (indicated by maxwl and rxwl) is less than 24 bits, then the user has the option to truncate these 24 bits to the actual size. these truncated bits are then sent to either the spdif tx or the aif. truncation may allow users to process data faster. if the user does not want this truncation to happen then they must mask the truncation using the wl_mask. in this case all 24 bits of data received are transferred. register address bit label default description r36 spdmode 24h 0 spdifin1mod e 1 selects the input circuit type for the spdifin1 input 0 = cmos-compatible input 1 = comparator input. compatible with 500mvpp ac coupled consumer s/pdif input signals as defined in iec60958-3. 2:1 rxinsel[1:0] 00 s/pdif receiver input mux select. the general purpose inputs must be configured using gpoxop to be either cmos or comparator inputs if selected by rxinsel. 00 = select spdifin1 01 = select spdifin2 (mfp3) 10 = select spdifin3 (mfp4) 11 = select spdifin4 (mfp5) 6 wl_mask 0 s/pdif receiver word length truncation mask 0 = disabled, data word is truncated as described in table 66. 1 = enabled, data word is not truncated. r39 gpo2 27h 3:0 gpo3op[3:0] 0010 gpo pin configuration select. 1110 = set gpo as s/pdif input (cmos-compatible input). 1111 = set gpo as s/pdif input (compatible with 500mvpp ac coupled consumer s/pdif input signals as defined in iec-60958-3). for gpo defaults, see table 72. 7:4 gpo4op[3:0] 0011 r40 gpo3 28h 3:0 gpo5op[3:0] 0100 r51 pwrdn 2 33h 5 spdifrxd 1 s/pdif receiver powerdown. 0 = s/pdif receiver enabled 1 = s/pdif receiver disabled
WM8580A production data w pd, rev 4.9, november 2013 66 the audio data sample can be transferred to either the aif or the spdif tx. when the audio data sample is transferred to the aif, and if the aif is operating in a mode which has less data bits, then the WM8580A will reduce the audio data sample to the length of the aif. for example, if the aif is operating in 16 bit mode, but the spdif rx receives an audio data sample length of 21 bits, then the WM8580A will reduce the 21 bits to 16 bits by removing the lsbs. this cannot be masked. if the aif is operating in 24 bit mode, then the full 21 bits are transferred on the aif, with the lsbs set to 000. when the audio data sample is transferred to the spdif tx, then the full audio data sample (24 bits) is written to the spdif tx. unless it has been truncated using the wl-mask bits should the recovered deemph channel status be set, and the s/pdif receiver is routed to dac1, the de-emphasis filter is activated for dac1. the s/pdif receiver reads channel status data from channel 1 only. the channel status data is stored in five read-only registers, which can be read via the serial interface (see serial interface readback ). when new channel status data has been recovered, and stored in registers, the channel status update (csud) bit is set to indicate that the status registers have updated and are ready for readback. after readback, csud are cleared until the registers are next updated. the csud flag can be configured to be output on any of the gpo pins. the register descriptions for the channel status bits are given below. register address bit label channel status bit default description r44 spdrxchan 1 2ch (read-only) 0 con/pro 0 - 0 = consumer mode 1 = professional mode the WM8580A is a consumer mode device. detection of professional mode may give erroneous behaviour. 1 audio_n 1 - linear pcm identification 0 = data word represents audio pcm samples. 1 = data word does not represent audio pcm samples. 2 cpy_n 2 - 0 = copyright is asserted for this data. 1 = copyright is not asserted for this data. 3 deemph 3 - 0 = recovered s/pdif data has no pre- emphasis. 1 = recovered s/pdif data has pre- emphasis. 5:4 reserved 5:4 - reserved for additional de-emphasis modes. 7:6 chstmode [1:0] 7:6 - 00 = only valid mode for consumer applications. table 62 s/pdif receiver channel status register 1 register address bit label channel status bit default description r45 spdrxchan 2 2dh (read-only) 7:0 catcode [7:0] 15:8 - category code. refer to s/pdif specification iec60958-3 for details. 00h indicates ?general? mode. table 63 s/pdif receiver channel status register 2
production data WM8580A w pd, rev 4.9, november 2013 67 register address bit label channel status bit default description r46 spdrxchan 3 2eh (read-only) 3:0 srcnum [3:0] 19:16 - indicates s/pdif source number. refer to s/pdif specification iec60958-3 for details. 5:4 chnum1[1:0] 21:20 - channel number for sub-frame 1. 00 = take no account of channel number (channel 1 defaults to left dac) 01 = channel 1 to left channel 10 = channel 1 to right channel 7:6 chnum2[1:0] 23:22 channel number for sub-frame 2. 00 = take no account of channel number (channel 2 defaults to left dac) 01 = channel 2 to left channel 10 = channel 2 to right channel table 64 s/pdif receiver channel status register 3 register address bit label channel status bit default description r47 spdrxchan 4 2fh (read-only) 3:0 freq[3:0] 27:24 - sampling frequency indicated. refer to s/pdif specification iec60958-3 for details. 5:4 clkacu[1:0] 29:28 - clock accuracy of received clock. 00 = level ii 01 = level i 10 = level iii 11 = interface frame rate not matched to sampling frequency. table 65 s/pdif receiver channel status register 4 register address bit label channel status bit default description r48 spdrxchan 5 30h (read-only) 0 maxwl 32 - maximum audio sample word length 0 = 20 bits 1 = 24 bits 3:1 rxwl[2:0] 35:33 - audio sample word length. 000: word length not indicated rxwl[2:0] maxwl==1 maxwl==0 001 20 bits 16 bits 010 22 bits 18 bits 100 23 bits 19 bits 101 24 bits 20 bits 110 21 bits 17 bits all other combinations are reserved and may give erroneous operation. data will be truncated internally when these bits are set unless wl_mask is set. 7:4 orgsamp [3:0] 39:36 - original sampling frequency. refer to s/pdif specification iec60958-3 for details. 0000 = original sampling frequency not indicated table 66 s/pdif receiver channel status register 5
WM8580A production data w pd, rev 4.9, november 2013 68 status flags there are several status flags generated by the s/pdif receiver, described below. flag description visibility unlock indicates that the s/pdif clock recovery circuit is unlocked, or the incoming s/pdif signal is not present. 0 = locked onto incoming s/pdif stream. 1 = not locked to the incoming s/pdif stream, or incoming stream is not present. s/pdif status register, gpo pins, swmode pin (when in hardware mode) invalid indicates that recovered s/pdif data is marked as invalid. 0 = data marked as valid 1 = data marked as invalid interrupt status register trans_err indicates that recovered s/pdif frame has parity errors or bi-phase encoding errors, or that sub-frames were recovered out of sequence 0 = no data errors or bi-phase encoding errors detected and sub- frame sequence correct 1 = data errors or bi-phase encoding errors detected or subframe sequence incorrect (missing preamble) interrupt status register audio_n linear pcm identification 0 = data word represents audio pcm samples. 1 = data word does not represent audio pcm samples. channel status register, s/pdif status register pcm_n indicates that non-audio code (defined in iec-61937) has been detected. 0 = sync code not detected. 1 = sync code detected ? received data is not audio pcm. s/pdif status register cpy_n recovered channel status bit-2 (active low) 0 = copyright is asserted for this data. 1 = copyright is not asserted for this data. channel status register, s/pdif status register, gpo pins deemph recovered channel status bit-3 0 = recovered s/pdif data has no pre-emphasis. 1 = recovered s/pdif data has pre-emphasis channel status register, s/pdif status register, gpo pins rec_freq[1:0] indicates recovered s/pdif sample rate. 00 = invalid 01 = 96khz / 88.2khz 10 = 48khz / 44.1khz 11 = 32khz s/pdif status register int_n interrupt signal (see section interrupt generation) gpo pins v recovered validity-bit for current sub-frame gpo pins u recovered user-bit for current sub-frame gpo pins c recovered channel-bit for current sub-frame gpo pins p recovered parity-bit for current sub-frame gpo pins sfrm_clk indicates current sub-frame: 1 = sub-frame a 0 = sub-frame b gpo pins 192blk indicates start of 192 frame-block. high for duration of frame-0. gpo pins csud indicates that the 192 frame-block of channel status data has updated. gpo pins zflag indicates ?zero-detection? in dacs. see page 45 for more details mute pin, gpo pins non_audio logical or of pcm_n and audio_n gpo pins, sdo pin (when in hardware mode) table 67 status flag description
production data WM8580A w pd, rev 4.9, november 2013 69 interrupt generation (int_n) the hardware interrupt int_n flag (active low) indicates that a change of status has occurred on one or more of the unlock, invalid, trans_err, non_audio, cpy_n, deemph, csud or rec_freq flags. to determine which flag caused the interrupt, the interrupt status register (intstat) should be read when int_n is asserted. invalid, trans_err and csud generate an interrupt when the flag transitions from low to high. unlock, non_audio, cpy_n, deemph and rec_freq will generate an interrupt on any change in status. int_n will remain asserted until it is cleared by reading the interrupt status register. if invalid, trans_err or csud are still active when the interrupt status register is read, int_n remains asserted. table 68 interrupt status register where the int_n has been asserted by an update signal (upd_unlock, upd_non_audio, upd_cpy_n, upd_deemph, upd_rec_freq) the s/ pdif status register can be read to reveal the satus of the flag. see table 69. register address bit label default description r43 intstat 2bh (read-only) 0 upd_unlock - unlock flag update signal 0 = int_n not caused by update to unlock flag 1 = int_n caused by update to unlock flag 1 int_invalid - invalid flag interrupt signal 0 = int_n not caused by invalid flag 1 = int_n caused by invalid flag 2 int_csud - csud flag interrupt signal 0 = int_n not caused by csud flag 1 = int_n caused by csud flag 3 int_trans _err - trans_err flag interrupt signal 0 = int_n not caused by trans_err flag 1 = int_n caused by trans_err flag 4 upd_non_audio - non_audio update signal 0 = int_n not caused by update to non_audio flag 1 = int_n caused by update to non_audio flag 5 upd_cpy_n - cpy_n update signal 0 = int_n not caused by update to cpy_n flag 1 = int_n caused by update to cpy_n flag 6 upd_deemph - deemph update signal 0 = int_n not caused by update to deemph flag 1 = int_n caused by update to deemph flag 7 upd_rec_freq - rec_freq update signal 0 = int_n not caused by update to rec_freq flag 1 = int_n caused by update to rec_freq flag
WM8580A production data w pd, rev 4.9, november 2013 70 register address bit label default description r49 spdstat 31h (read-only) 0 audio_n - linear pcm identification 0 = data word represents audio pcm samples. 1 = data word does not represent audio pcm samples. 1 pcm_n - indicates that non-audio code (defined in iec-61937) has been detected. 0 = sync code not detected. 1 = sync code detected ? received data is not audio pcm. 2 cpy_n - recovered channel status bit-2 (active low). 0 = copyright is asserted for this data. 1 = copyright is not asserted for this data. 3 deemph - recovered channel status bit-3 0 = recovered s/pdif data has no pre-emphasis. 1 = recovered s/pdif data has pre-emphasis 5:4 rec_freq [1:0] -- indicates recovered s/pdif clock frequency: 00 = invalid 01 = 96khz / 88.2khz 10 = 48khz / 44.1khz 11 = 32khz 6 unlock - indicates that the s/pdif clock recovery circuit is unlocked or that the input s/pdif signal is not present. 0 = locked onto incoming s/pdif stream. 1 = not locked to the incoming s/pdif stream or the incoming s/pdif stream is not present. table 69 s/pdif status register the interrupt and update signals used to generate int_n can be masked as necessary. the mask register bit prevents flags from asserting int_n and from updating the interrupt status register (r43). masked flags update the s/pdif status register (r49). register address bit label default description r37 intmask 25h 8:0 mask[8:0] 000000000 when a flag is masked, it does not update the interrupt status register or assert int_n. 0 = unmask, 1 = mask. mask[0] = mask control for upd_unlock mask[1] = mask control for int_invalid mask[2] = mask control for int_csud mask[3] = mask control for int_trans_err mask[4] = mask control for upd_audio_n mask[5] = mask control for upd_pcm_n mask[6] = mask control for upd_cpy_n mask[7] = mask control for upd_deemph mask[8] = mask control for upd_rec_freq table 70 interrupt mask control register
production data WM8580A w pd, rev 4.9, november 2013 71 error handling in software mode when the trans_err flag is asserted, it indi cates that the recovered rx s/pdif sub-frame is corrupted. this corruption can due to a bi-phase error, a parity error or a pre-amble error. when the invalid flag is asserted, it indicates that the recovered rx s/pdif sub-frame has been marked as being invalid by the source of the s/pdif data. both trans_err and invalid indicate an error. the s/pdif receiver has two modes of handling for these errors, manual and automatic. the mechanism for each flag is similar. the mechanisms are described below. manual error handling this manual handling of errored rx s/pdif data can be used when an application processor is being interrupted via the int_n signal. appropriate action should be taken by the application processor to handle the error condition if the trans_err and invalid error flags are not masked using the mask register, the recovered s/pdif rx data is passed to the digital audio interface and dac1 or to the s/pdif transmitter irrespective of the state of the flag and the data content of the recovered stream.(also refer to note 1 below). in this case, the application processor will be interrupted via the int_n signal. automatic error handling this automatic handling of errored rx s/pdif data can be used when an application processor is not being interrupted via the int_n signal leaving the WM8580A to handle the error condition. if the trans_err and invalid error flags are masked using the mask register, the WM8580A output data from the s/pdif rx interface depends on the setting of fillmode. if fillmode=1, then the incoming data (which is errored) is overwritten with 0?s. if fillmode=0, then the last valid data sample is repeatedly output. for the invalid flag, the automatic error handling can be disabled if alwaysvalid =1. if alwaysvalid is set, then the recovered rx s/pdif data, which is marked as invalid, will be allowed to pass to the digital audio interface or to the s/pdif transmitter. the data will not be modified in any way. notes 1. for the s/pdif receiver to s/pdif transmitter data path, only the invalid flag will cause data to be overwritten, the trans_err flag is not used to overwrite data which is passed to the s/pdif transmitter. register address bit label default description r38 gp01 26h 8 fillmode 0 fill mode overwrite configuration determines s/pdif receiver action when trans_err or invalid flag is masked and error condition sets the flag: 0 = data from s/pdif receiver is overwritten with last valid data sample when flag is set. 1 = data from s/pdif receiver is overwritten as all zeros when flag is set. r39 gp02 27h 8 alwaysvalid 0 automatic error handling configuration for invalid flag 0 = invalid flag automatic error handling enabled. 1 = invalid flag automatic error handling disabled. table 71 s/pdif receiver automatic error handling configuration registers
WM8580A production data w pd, rev 4.9, november 2013 72 non-audio detection the spdif payload can contain pcm data for audio or non-audio applications. in the case where the payload contains the 96 bit synchronization code defined in iec61937 then this indicates that the payload contains data which is not suitable for direct playback through an audio codec. this 96 bit code is defined as 4*16bits of ?0?+pa (16bits)+pb (16bits).. if the spdifrx interface decodes this sync code then it sets the pcm_n bit. when the pcm_n =1, then it indicates non-audio data. when the pcm_n =0, then it indicates that the spdif payload does not contain the synch code.. another status bit, audio_n status is recovered from the channel status block.it is bit 1 of the channel status. when audio_n =0, then it indicates that the spdif payload contains audio pcm encoded data. this is also referred to as linear pcm data.when the audio_n= 1, then it indicates that the spdif payload does not contain audio pcm data. non_audio data is indicated by a logical or of the audio_n and pcm_n flags. if dac1 is sourcing the s/pdif receiver and either the audio_n or pcm_n flags are asserted, dac1 is automatically muted using the soft mute feature. as described above, any change of audio_n or pcm_n status will cause an int_ n interrupt (upd_non_audio) to be generated. if the mask register bit for audio_n or pcm_n is set, then the associated signal will not generate an interrupt (upd_non_audio) but the dac will be muted. s/pdif input/ gpo pin configuration the WM8580A has ten pins which can be configured as gpos using the registers shown in table 72. the gpo pins can be used to output status data decoded by the s/pdif receiver. these same pins may be used as s/pdif inputs as described in table 61. register address bit label default description r38 gpo1 26h 3:0 gpo1op[3:0] 0000 0000 = int_n 0001 = v 0010 = u 0011 = c 0100 = p 0101 = sfrm_clk 0110 = 192blk 0111 = unlock 1000 = csud 1001 = invalid 1010 = zflag 1011 = non_audio 1100 = cpy_n 1101 = deemp 1110 = set gpo as s/pdif input (cmos-compatible input). only applicable for gpo3/4/5. 1111 = set gpo as s/pdif input (?comparator? input for ac coupled consumer s/pdif signals). only applicable for gpo3/4/5 7:4 gpo2op[3:0] 0001 r39 gpo2 27h 3:0 gpo3op[3:0] 0010 7:4 gpo4op[3:0] 0011 r40 gpo3 28h 3:0 gpo5op[3:0] 0100 7:4 gpo6op[3:0] 0101 r41 gpo4 29h 3:0 gpo7op[3:0] 0110 7:4 gpo8op[3:0] 0111 r42 gpo5 2ah 3:0 gpo9op[3:0] 1000 7:4 gpo10op [3:0] 1001 table 72 gpo control registers
production data WM8580A w pd, rev 4.9, november 2013 73 powerdown modes the WM8580A has powerdown control bits allowing specific parts of the chip to be turned off when not in use. the adc is powered down by setting the adcpd register bit. the three stereo dacs each have a separate powerdown control bit, dacpd[2:0], allowing individual stereo dacs to be powered down when not in use. dacpd can be overwritten by setting alldacpd to powerdown all dacs the s/pdif transmitter is powered down by setting spdiftxd. setting spdifrxd powers down the s/pdif receiver. the pll, oscillator and s/pdif clock recovery circuits are powered down by setting pllpd, oscpd and spdifpd respectively. setting all of adcpd, dacpd[2:0], spdiftxd, spdifrxd and outpd[3:0] will powerdown everything except the references vmidadc, adcref and vmiddac. these may be powered down by setting pwdn. setting pwdn will override a ll other powerdown control bits. it is recommended that the adc and dac are powered down before setting pwdn. the default is for all powerdown bits to be set except oscpd and pwdn.
WM8580A production data w pd, rev 4.9, november 2013 74 register address bit label default description r50 pwrdn 1 32h 0 pwdn 0 master powerdown (overrides all powerdown registers) 0 = all digital circuits running, outputs are active 1 = all digital circuits in power down mode, outputs muted 1 adcpd 1 adc powerdown 0 = adc enabled 1 = adc disabled 4:2 dacpd[2:0] 111 dac powerdowns 0 = dac enabled 1 = dac disabled dacpd[0] = dac1 dacpd[1] = dac2 dacpd[2] = dac3 6 alldacpd 1 overrides dacpd[3:0] 0 = dacs under control of dacpd[3:0] 1= all dacs are disabled. r51 pwrdn 2 33h 0 oscpd 0 osc output powerdown 0 = osc output enabled 1 = osc output disabled a cmos input can be applied to the osc input when powered down. 1 pllapd 1 0 = plla enabled 1 = plla disabled 2 pllbpd 1 0 = pllb enabled 1 = pllb disabled 3 spdifpd 1 s/pdif clock recovery powerdown 0 = s/pdif enabled 1 = s/pdif disabled 4 spdiftxd 1 s/pdif transmitter powerdown 0 = s/pdif transmitter enabled 1 = s/pdif transmitter disabled 5 spdifrxd 1 s/pdif receiver powerdown 0 = s/pdif receiver enabled 1 = s/pdif receiver disabled table 73 powerdown registers
production data WM8580A w pd, rev 4.9, november 2013 75 internal power on reset circuit figure 40 internal power on reset circuit schematic the WM8580A includes an internal power-on reset circuit, which is used to reset the digital logic into a default state after power up. figure 40 shows a schematic of the internal por circuit. the por circuit is powered from avdd. the circuit monitors dvdd and vmid and asserts porb low if dvdd or vmid are below the minimum threshold vpor_off. on power up, the por circuit requires avdd to be present to operate. porb is asserted low until avdd, dvdd and vmid voltages have risen above their reset thresholds. when these three conditions have been met, porb is released high. w hen porb is released high, all registers are in their default state and writes to the digital interface may take place. on power down, porb is asserted low whenever dvdd or vmid drop below the minimum threshold vpor_off. if avdd is removed at any time, the internal power on reset circuit is powered down and the porb output will follow the avdd voltage. in most applications, the time required for the device to release porb high will be determined by the charge time of the vmid node.
WM8580A production data w pd, rev 4.9, november 2013 76 figure 41 typical power up sequence where dvdd is powered before avdd figure 42 typical power up sequence where avdd is powered before dvdd symbol min typ max unit v pora 0.5 0.7 1.0 v v porr 0.5 0.7 1.1 v v pora_off 1.0 1.4 2.0 v v pord_off 0.6 0.8 1.0 v table 74 typical por operation in a real application, the designer is unlikely to have control of the relative power up sequence of avdd and dvdd. using the por circuit to monitor vmid ensures a reasonable delay between applying power to the device and device ready.
production data WM8580A w pd, rev 4.9, november 2013 77 figure 41 and figure 42 show typical power up scenarios in a real system. both avdd and dvdd must be established, and vmid must have reached the threshold vporr before the device is ready and can be written to. any writes to the device before device ready will be ignored. figure 41 shows dvdd powering up before avdd. figure 42 shows avdd powering up before dvdd. in both cases, the time from applying power to device ready is dominated by the charge time of vmid. a 4.7f capacitor (minimum) is recommended for decoupling on vmid. the charge time for vmid will dominate the time required for the device to become ready after power is applied. the time required for vmid to reach the threshold is a function of the vmid resistor string and the decoupling capacitor. to reduce transient audio effects during power on, the stereo dacs on the WM8580A have their outputs clamped to vmid at power-on. this increases the capacitive loading of the vmid resistor string, as the dac output ac coupling capacitor s must be charged to vmid, and hence the required charge time. to ensure minimum device startup tim e, the vmidsel bit is set by default, thus reducing the impedance of the resistor string. if required, the vmid string can be restored to a high impedance state to save power once the device is ready. register address bit label default description r29 adc control 1 1dh 8 vmidsel 1 vmid impedance selection 0 = high impedance, power saving 1 = low impedance, fast power- on device id readback reading from registers r0, r1 and r2 returns the device id and revision number. r0 returns 80h, r1 returns 85h, r2 returns the device revision number. device id readback is not possible in continuous readback mode (contread=1). hardware control mode the WM8580A can be controlled in hardware control mode or software control mode. the method of control is determined by the state of the hwmode pin. if the hwmode pin is low, software control mode is selected. if the hwmode pin is high, hardware control mode is selected. in hardware control mode the user has limited control over the features of the WM8580A. most of the features will assume their default settings but so me can be modified using external pins. hwmode swmode 0 1 0 1 software control hardware control 2-wire control 3-wire control table 75 hardware/software mode setup digital routing control see page 22 for a more detailed explanation of the digital routing options within the WM8580A. in software control mode, the values of register bi ts dac_src, paiftx_src and txsrc configure the signal path routing between interfaces. in hardware mode, similar control can be achieved via pins dr1, dr2, dr3 and dr4 as detailed in table 76 and table 77. pin 0 1 dr1 dac_src=s/pdif receiver dac_src=paif receiver dr2 paiftx_src=s/pdif receiver paiftx_src=adc output table 76 dr1 / dr2 operation
WM8580A production data w pd, rev 4.9, november 2013 78 dr4 dr3 s/pdif transmitter data source 0 0 s/pdif received data 0 1 adc digital output data 1 0 n/a 1 1 paif receiver data table 77 dr3 / dr4 operation the secondary audio interface (saif) is not operational in hardware mode. status pins in hardware control mode, sdo, swmode and mfp8/9/10 pins provide s/pdif status flag information. pin flag description swmode unlock indicates that the s/pdif clock recovery circuit is unlocked or that the input s/pdif signal is not present. 0 = locked to incoming s/pdif stream. 1 = not locked to the incoming s/pdif stream, or incoming stream not present. sdo non_audio logical or of pcm_n and audio_n: pcm_n indicates that non-audio code (defined in iec-61937) has been detected. audio_n is the recovered channel status bit-1. mfp8 c recovered channel-bit for current sub-frame mfp9 sfrm_clk indicates current sub-frame: 1 = sub-frame a 0 = sub-frame b mfp10 192blk indicates start of 192-frame block. high for duration of frame 0, low after frame 0. table 78 hardware mode status pins digital audio interface control in hardware control mode, csb and sclk become controls to configure the primary audio interface data format and word length. the configuration applies to both transmit and receive sides of the interface. table 79 below shows the options available. csb sclk format and word length 0 0 24-bit right justified 0 1 20-bit right justified 1 0 24-bit left justified 1 1 24-bit i 2 s table 79 audio interface hardware mode control dac mute control in hardware control mode, the mute pin activ ates the softmute function on all the dacs. in software control mode, mute activates softmute on the da c selected by the dzfm register (when the mpdenb bit is low). see section headed ?mute modes? for a detailed description of the softmute function and the other methods of activating softmute. when floating, the mute pin becomes an output for the zflag flag.
production data WM8580A w pd, rev 4.9, november 2013 79 mute description 0 normal operation 1 mute dac channels floating mute is an output to indicate when zero detection occurs on all dacs (zflag). h = detected, l = not detected. table 80 mute pin control options primary audio interface (tx) master mode control in hardware control mode, the sdin pin is used to enable the master mode function on the primary audio interface transmitter. this has the same operation as the paiftx_ms register bit. the paiftx_rate default settings of 256fs, and 64 bclks/lrclk for bclksel, are used in hardware control mode. see section headed ?digital audio interfaces? for more information on master mode operation. sdin audio interface (tx) 0 slave 1 master table 81 audio interface (transmitter) master mode hardware mode control s/pdif error handling should the incoming s/pdif sub-frame contain a parity error or a bi-phase encoding error, it is assumed the sub-frame has become corrupted. similarly, if validity is detected as 1, it is assumed the data within the s/pdif frame is invalid. under these conditions, the s/pdif receiver repeats the last valid sample in place of the corrupted/invalid samples. (note: for the s/pdif receiver to s/pdif transmitter path, only validity errors will cause data to be overwritten ? parity and bi-phase errors have will not cause data to be overwritten). powerdown control in software control mode, the chip is powered-down by default. in hardware control mode, the chip is powered-up by default but can be powered down by setting the allpd(mfp7) input high. (note that in software control mode, this pin takes the function of saif_lrclk or gpo7). allpd (mfp7) 0 1 powerup powerdown table 82 hardware mode powerdown control hardware control clock routing in hardware mode the user has no access to the internal clock routing . in this mode the automatic clock routing provides maximum functionality. in harware mode the oscclk must be 12mhz. no other oscclk frequencies are supported. master mode if the s/pdif rx interface is enabled, then an internal mclk is generated at 256fs. this internal clock will act as a source clock for adc, dacs and paif. the paif will output the paiftx_bclk and the paif_lrclk. the mclk is not available as an output (mclk pin defaults to an input). the saif is not available in hardware mode. if the s/pdif is disabled and the adc is used as the source for the dacs or paif, then an mclk clock must be provided via the adcmclk input pin. if the paif sources the adc and the dacs source the s/pdif, then the paif will operate from an mclk generated from the adcmclk input clock and the dacs will operate from an internal mclk (256fs) generated from s/pdif interface.
WM8580A production data w pd, rev 4.9, november 2013 80 slave mode if the s/pdif rx interface is enabled, then an internal mclk is generated at 256fs. this internal clock will act as a source clock for adc, dacs and paif . the user is required to supply input clocks to the paiftx_bclk and the paif_lrclk. if the paif or dacs source the s/pdif rx interface then the paiftx_bclk and the paif_lrclk input clocks must be synchronous to clock driving the s/pdif interface. if these clocks cannot be guaranteed synchronous then this mode of operation is not recommended. if the paif sources the adc data, then the user must supply input clocks to adcclk, paiftx_bclk and the paif_lrclk pins.
production data WM8580A w pd, rev 4.9, november 2013 81 register map the complete register map is shown below. the detailed descr iption can be found in the relevant text of the device description. the WM8580A can be configured using the control interface. all unused bi ts should be set to ?0?. not all registers can be read. onl y the device id (registers r0, r1 and r2) and the status registers c an be read. these status registers are labelled as ?read only? register name address b8 b7 b6 b5 b4 b3 b2 b1 b0 default r0 plla 1/devid1 00 plla_k[8:0] 100100001 r1 plla 2/devid2 01 plla_k[17:9] 101111110 r2 plla 3/devrev 02 0 plla_n[3:0] plla_k[21:18] 001111101 r3 plla 4 03 0 0 0 0 freqmode_a[1:0] 1 postscale_a prescale_a 000010100 r4 pllb 1 04 pllb_k[8:0] 100100001 r5 pllb 2 05 pllb_k[17:9] 101111110 r6 pllb 3 06 0 pllb_n[3:0] pllb_k[21:18] 001111101 r7 pllb 4 07 clkoutsrc[1:0] mclkoutsrc[1:0] freqmode_b[1:0] 1 postscale_b prescale_b 110010100 r8 clksel 08 0 0 clksel _man tx_clksel[1:0] adc_clksel[1:0] dac_clksel[1:0] 000010000 r9 paif 1 09 0 paifrxms_clksel[1:0] paifrxms paifrx_bclksel[1:0] paifrx_rate[2:0] 000000010 r10 paif 2 0a 0 0 0 paiftxms paiftx_bclksel[1:0] paiftx_rate[2:0] 000000010 r11 saif 1 0b 0 saifms_clksel[1:0] saifms saif_bclksel[1:0] saif_rate[2:0] 011000010 r12 paif 3 0c dac_src[1:0] dacosr paifrxbcp paifrxlr p paifrxwl[1:0] paifrxfmt[1:0] 110001010 r13 paif 4 0d paiftx_src[1:0] 0 paiftxbcp paiftxlrp paiftxwl[1:0] paiftxfmt[1:0] 010001010 r14 saif 2 0e saiftx_src[1:0] saif_en saifbcp saiflrp saifwl[1:0] saiffmt[1:0] 000001010 r15 dac control 1 0f rx2dac_mode 0 0 dac3sel[1:0] dac2sel[1:0] dac1sel[1:0] 000100100 r16 dac control 2 10 0 izd dzfm[2:0] pl[3:0] 000001001 r17 dac control 3 11 0 0 0 0 deempall 0 deemp[2:0] 000000000 r18 dac control 4 12 0 1 1 phase[5:0] 011111111 r19 dac control 5 13 0 mpdenb dacatc dzcen muteall 0 dmute[2:0] 000000000 r20 digital attenutation dacl 1 14 update lda1[7:0] 011111111 r21 digital attenutation dacr 1 15 update rda1[7:0] 011111111 r22 digital attenutation dacl 2 16 update lda2[7:0] 011111111 r23 digital attenutation dacr 2 17 update rda2[7:0] 011111111 r24 digital attenutation dacl 3 18 update lda3[7:0] 011111111 r25 digital attenutation dacr 3 19 update rda3[7:0] 011111111 r28 master digital attenutation 1c update mastda[7:0] 011111111 r29 adc control 1 1d vmidsel adcrate[2:0] a dchpd adcosr a muteall amuter amutel 001000000 r30 spdtxchan 0 1e 0 0 txval_ sf1 txval_ sf0 txval_ ovwr real_ through ovwchan txsrc[1:0] 000000000 r31 spdtxchan 1 1f 0 chstmode[1:0] deemph[2:0] cpy_n audio_n con/pro 000000000 r32 spdtxchan 2 20 0 catcode[7:0] 000000000 r33 spdtxchan 3 21 0 chnum2[1:0] chnum1[1:0] srcnum[3:0] 000000000 r34 spdtxchan 4 22 0 0 0 clkacu[1:0] freq[3:0] 000110001 r35 spdtxchan 5 23 0 orgsamp[3:0] txwl[2:0] maxwl 000001011 r36 spdmode 24 0 0 wl_mask 1 1 1 rxinsel[1:0] s pdifin1mode 000111001 r37 intmask 25 mask[8:0] 000000000
WM8580A production data w pd, rev 4.9, november 2013 82 register name address b8 b7 b6 b5 b4 b3 b2 b1 b0 default r38 gpo1 26 fillmode gpo2op[3:0] gpo1op[3:0] 000010000 r39 gpo2 27 a lwaysvalid gpo4op[3:0] gpo30p[3:0] 000110010 r40 gpo3 28 0 gpo6op[3:0] gpo5op[3:0] 001010100 r41 gpo4 29 0 gpo8op[3:0] gpo70p[3:0] 001110110 r42 gpo5 2a 0 gpo10op[3:0] gpo9op[3:0] 010011000 r43 intstat 2b error flag interupt status register read-only r44 spdrxchan 1 2c channel status register 1 read-only r45 spdrxchan 2 2d channel status register 2 read-only r46 spdrxchan 3 2e channel status register 3 read-only r47 spdrxchan 4 2f channel status register 4 read-only r48 spdrxchan 5 30 channel status register 5 read-only r49 spdstat 31 s/pdif status register read-only r50 pwrdn 1 32 0 0 alldacpd 1 dacpd[2:0] adcpd pwdn 001111110 r51 pwrdn 2 33 0 0 0 spdifrxd s pdiftxd spdifpd pllbpd pllapd oscpd 000111110 r52 readback 34 0 0 0 0 readen contread readmux[2:0] 000000000 r53 reset 35 reset n/a register address bit label default description r0 plla 1/ devid1 00h 8:0 plla_k[8:0] 100100001 fractional (k) part of plla frequency riio (r). value k is one 22-digit binary number spread over registers r0, r1 and r2 as shown. reading from these registers will return the device id. r0 returns 10000000 = 80h r1 returns 10000101 = 85h device id readback is not possible in continuous readback mode (contread=1). r1 plla 2/ devid2 01h 8:0 plla_k[17:9] 101111110 r2 plla 3/ devrev 02h 3:0 plla_k[21:18] 1101 7:4 plla_n[3:0] 0111 integer (n) part of plla frequeniratio (r). use values in the range 5 plla_n 13 as close as possible to 8. reading from this register will return the device revision number. r3 plla 4 03h 0 prescale_a 0 pll pre-scale divider select 0 = divide by 1 (pll input clock = oscillator clock) 1 = divide by 2 (pll input clock = oscillator clock ? 2) note: prescale_a must be set to the same value as prescale_b in pll s/pdif receiver mode. 1 postscale_a 0 pll post-scale divider select pll s/pdif receiver mode postscale_a is used to configure a 256fs or 128fs pllaclk, postscale_b is not used. refer to table 51. pll user mode used in conjunction with the freqmode_x bits. refer to table 50.
production data WM8580A w pd, rev 4.9, november 2013 83 register address bit label default description 4:3 freqmode_a[ 1:0] 10 pll output divider select pll s/pdif receiver mode freqmode_a is automatically controlled. freqmode_b is not used. pll user mode used in conjunction with the postscale_x bits. refer to table 50. r4 pllb 1 04h 8:0 pllb_k[8:0] 100100001 fractional (k) part of pllb freqicy ratio (r). value k is one 22-digit binary number spread over registers r4, r5 and r6 as shown. note: pllb_k must be set to specific values when the s/pdif receiver is used. refer to s/pdif receive mode clocking section for details. r5 pllb 2 05h 8:0 pllb_k[17:9] 101111110 r6 pllb 3 06h 3:0 pllb_k[21:18] 1101 7:4 pllb_n[3:0] 0111 integer (n) part of pllb fiuency ratio (r). use values in the range 5 pllb_n 13 as close as possible to 8 note: pllb_n must be set to specific values when the s/pdif receiver is used. refer to s/pdif receive mode clocking section for details. r7 pllb 4 07h 0 prescale_b 0 pll pre-scale divider select 0 = divide by 1 (pll input clock = oscillator clock) 1 = divide by 2 (pll input clock = oscillator clock ? 2) note: prescale_a must be set to the same value as prescale_b in pll s/pdif receiver mode. 1 postscale_b 0 pll post-scale divider select pll s/pdif receiver mode postscale_a is used to configure a 256fs or 128fs pllaclk, postscale_b is not used. refer to table 51. pll user mode used in conjunction with the freqmode_x bits. refer to table 50. 4:3 freqmode_b [1:0] 10 pll output divider select pll s/pdif receiver mode freqmode_a is automatically controlled. freqmode_b is not used. pll user mode used in conjunction with the postscale_x bits. refer to table 50. 6:5 mclkoutsrc 00 mclk pin output source 00 = input ? source mclk pin 01 = output ? source pllaclk 10 = output ? source pllbclk 11 = output ? source oscclk 8:7 clkoutsrc 11 clkout pin source 00 = no output (tristate) 01 = output ? source pllaclk 10 = output ? source pllbclk 11 = output ? source oscclk r8 clksel 08h 1:0 dac_clksel 00 dac clock source 00 = mclk pin 01 = pllaclk 10 = pllbclk 11 = mclk pin
WM8580A production data w pd, rev 4.9, november 2013 84 register address bit label default description 3:2 adc_clksel 00 adc clock source 00 = adcmlck pin 01 = pllaclk 10 = pllbclk 11 = mclk pin 5:4 tx_clksel 01 s/pdif transmitter clock source 00 = adcmlck pin 01 = pllaclk 10 = pllbclk 11 = mclk pin 6 clksel_man 0 clock selection auto-configuration override 0 = auto-configuration enabled 1 = auto-configuration disabled, clock configuration follows relevant clksel bits in r8 to r11. r9 paif 1 09h 2:0 paifrx_rate [2:0] 010 master mode lrclk rate 000 = 128fs 001 = 192fs 010 = 256fs 011 = 384fs 100 = 512fs 101 = 768fs 110 = 1152fs 4:3 paifrx_bclksel [1:0] 00 master mode bclk rate 00 = 64 bclks per lrclk 01 = 32 bclks per lrclk 10 = 16 bclks per lrclk 11 = bclk = system clock 5 paifrxms 0 paif receiver master/slave mode select 0 = slave mode 1 = master mode 7:6 paifrxms_ clksel 00 paif receiver master mode clock source 00 = mclk pin 01 = pllaclk 10 = pllbclk 11 = mclk pin r10 paif 2 0ah 2:0 paiftx_rate [2:0] 010 master mode lrclk rate 000 = 128fs 001 = 192fs 010 = 256fs 011 = 384fs 100 = 512fs 101 = 768fs 110 = 1152fs 4:3 paiftx_bclksel [1:0] 00 master mode bclkrate 00 = 64 bclks per lrclk 01 = 32 bclks per lrclk 10 = 16 bclks per lrclk 11 = bclk = system clock 5 paiftxms 0 paif transmitter master/slave mode select: 0 = slave mode 1 = master mode
production data WM8580A w pd, rev 4.9, november 2013 85 register address bit label default description r11 saif1 0bh 2:0 saif_rate [2:0] 010 master mode lrclk rate 000 = 128fs 001 = 192fs 010 = 256fs 011 = 384fs 100 = 512fs 101 = 768fs 110 = 1152fs 4:3 saif_bclksel [1:0] 00 master mode bclk rate 00 = 64 bclks per lrclk 01 = 32 bclks per lrclk 10 = 16 bclks per lrclk 11 = bclk = system clock 5 saifms 0 saif master/slave mode select 0 = slave mode 1 = master mode 7:6 saifms_ clksel [1:0] 11 saif master mode clock source 00 = adcmclk pin 01 = pllaclk 10 = pllbclk 11 = mclk pin r12 paif 3 0ch 1:0 paifrxfmt [1:0] 10 paif receiver audio data format select 11: dsp format 10: i 2 s format 01: left justified 00: right justified 3:2 paifrxwl [1:0] 10 paif receiver audio data word length 11: 32 bits (see note) 10: 24 bits 01: 20 bits 00: 16 bits 4 paifrxlrp 0 in lj/rj/i 2 s modes 0 = lrclk not inverted 1 = lrclk inverted in dsp format: 0 = dsp mode a 1 = dsp mode b 5 paifrxbcp 0 paif receiver bclk polarity 0 = bclk not inverted 1 = bclk inverted 6 dacosr 0 dac oversampling rate control 0= 128x oversampling 1= 64x oversampling 8:7 dac_src [1:0] 11 dac1 source: 00 = s/pdif received data. 10 = saif receiver data 11 = paif receiver data note: when dac_src = 00, dac2/3 may be turned off, depending on rx2dac_mode
WM8580A production data w pd, rev 4.9, november 2013 86 register address bit label default description r13 paif 4 0dh 1:0 paiftxfmt [1:0] 10 paif transmitter audio data format select 11: dsp format 10: i 2 s format 01: left justified 00: right justified 3:2 paiftxwl [1:0] 10 paif transmitter audio data word length 11: 32 bits (see note) 10: 24 bits 01: 20 bits 00: 16 bits 4 paiftxlrp 0 in lj/rj/i 2 s modes 0 = lrclk not inverted 1 = lrclk inverted in dsp format: 0 = dsp mode a 1 = dsp mode b 5 paiftxbcp 0 paif receiver bclk polarity 0 = bclk not inverted 1 = bclk inverted 8:7 paiftx_src [1:0] 01 primary audio interface transmitter source 00 = s/pdif received data. 01 = adc digital output data. 10 = saif receiver data r14 saif 2 0eh 1:0 saiffmt [1:0] 10 saif audio data format select 11: dsp format 10: i 2 s format 01: left justified 00: right justified 3:2 saifwl [1:0] 10 saif audio data word length 11: 32 bits (see note) 10: 24 bits 01: 20 bits 00: 16 bits 4 saiflrp 0 in lj/rj/i 2 s modes 0 = lrclk not inverted 1 = lrclk inverted in dsp format: 0 = dsp mode a 1 = dsp mode b 5 saifbcp 0 saif bclk polarity 0 = bclk not inverted 1 = bclk inverted 6 saif_en 0 saif enable 0 = saif disabled 1 = saif enabled 8:7 saiftx_src [1:0] 00 secondary audio interface transmitter source 00 = s/pdif received data. 01 = adc digital output data. 11 = paif receiver data
production data WM8580A w pd, rev 4.9, november 2013 87 register address bit label default description r15 dac control 1 0fh 1:0 dac1sel [1:0] 00 dac digital input select 00 = dac takes data from din1 01 = dac takes data from din2 10 = dac takes data from din3 3:2 dac2sel [1:0] 01 5:4 dac3sel [1:0] 10 8 rx2dac_mode 0 dac oversampling rate and power down control (only valid when dac_src = 00, s/pdif receiver) 0 = sfrm_clk determines oversampling rate, dacs 2/3 powered down 1 = paifrx_lrclk determines oversampling rate, dacs 2/3 source paif receiver r16 dac control 2 10h 3:0 pl[3:0] 1001 pl[3:0] left o/p right o/p 0000 mute mute 0001 left mute 0010 right mute 0011 (l+r)/2 mute 0100 mute left 0101 left left 0110 right left 0111 (l+r)/2 left 1000 mute right 1001 left right 1010 right right 1011 (l+r)/2 right 1100 mute (l+r)/2 1101 left (l+r)/2 1110 right (l+r)/2 1111 (l+r)/2 (l+r)/2 6:4 dzfm[2:0] 000 selects the source for zflag 000 all dacs zero flag 001 dac1 zero flag 010 dac2 zero flag 011 dac3 zero flag 100 zflag = 0 101 zflag = 0 110 zflag = 0 111 zflag = 0 7 izd 0 infinite zero detection circuit control and automute control 0 = infinite zero detect automute disabled 1 = infinite zero detect automute enabled r17 dac control 3 11h 2:0 deemp[2:0] 000 de-emphasis mode select deemp[0] = 1, enable de-emphasis on dac1 deemp[1] = 1, enable de-emphasis on dac2 deemp[2] = 1, enable de-emphasis on dac3 4 deempall 0 0 = de-emphasis controlled by deemp[2:0] 1 = de-emphasis enabled on all dacs
WM8580A production data w pd, rev 4.9, november 2013 88 register address bit label default description r18 dac control 4 12h 5:0 phase [5:0] 111111 controls phase of dac outputs phase[0] = 0 inverts phase of dac1l output phase[1] = 0 inverts phase of dac1r output phase[2] = 0 inverts phase of dac2l output phase[3] = 0 inverts phase of dac2r output phase[4] = 0 inverts phase of dac3l output phase[5] = 0 inverts phase of dac3r output r19 dac control 5 13h 2:0 dmute[2:0] 000 dac channel soft mute enables dmute[0] = 1, enable soft-mute on dac1 dmute[1] = 1, enable soft-mute on dac2 dmute[2] = 1, enable soft-mute on dac3 4 muteall 0 dac channel master soft mute. mutes all dac channels 0 = disable soft-mute on all dacs 1 = enable soft-mute on all dacs 5 dzcen 0 dac digital volume zero cross enable 0 = zero cross detect disabled 1 = zero cross detect enabled 6 dacatc 0 attenuator control 0 = all dacs use attenuations as programmed. 1 = right channel dacs use corresponding left dac attenuations 7 mpdenb 0 mute pin decode enable 0 = mute activates soft-mute on dac selected by dzfm 1 = mute activates softmute on all dacs r20 digital attenuation dacl 1 14h 7:0 lda1[7:0] 11111111 (0db) digital attenuation control for dac1 left channel (dacl1) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store lda1 in intermediate latch (no change to output) 1 = apply lda1 and update attenuation on all channels r21 digital attenuation dacr 1 15h 7:0 rda1[6:0] 11111111 (0db) digital attenuation control for dac1 right channel (dacr1) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store rda1 in intermediate latch (no change to output) 1 = apply rda1 and update attenuation on all channels r22 digital attenuation dacl 2 16h 7:0 lda2[7:0] 11111111 (0db) digital attenuation control for dac2 left channel (dacl2) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store lda2 in intermediate latch (no change to output) 1 = apply lda2 and update attenuation on all channels r23 digital attenuation dacr 2 17h 7:0 rda2[7:0] 11111111 (0db) digital attenuation control for dac2 right channel (dacr2) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store rda2 in intermediate latch (no change to output) 1 = apply rda2 and update attenuation on all channels r24 digital attenuation dacl 3 18h 7:0 lda3[7:0] 11111111 (0db) digital attenuation control for dac3 left channel (dacl3) in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store lda3 in intermediate latch (no change to output) 1 = apply lda3 and update attenuation on all channels
production data WM8580A w pd, rev 4.9, november 2013 89 register address bit label default description r25 digital attenuation dacr 3 19h 7:0 rda3[7:0] 11111111 (0db) digital attenuation control for dac3 right channel (dacr3) in 0.5db steps. see table 23. 8 update not latched controls simultaneous update of all attenuation latches 0 = store rda3 in intermediate latch (no change to output) 1 = apply rda3 and update attenuation on all channels r28 master digital attenuation 1ch 7:0 mastda[7:0] 11111111 (0db) digital attenuation control for all dac channels in 0.5db steps. see table 23 8 update not latched controls simultaneous update of all attenuation latches 0 = store gain in intermediate latch (no change to output) 1 = apply gain and update attenuation on all channels r29 adc control 1 1dh 0 amutel 0 adc mute select 0 = normal operation 1 = mute adc left 1 amuter 0 adc mute select 0 = normal operation 1 = mute adc right 2 amuteall 0 adc mute select 0 = normal operation 1 = mute both adc channels 3 adcosr 0 adc oversample rate select 0 = 128/64 x oversampling 1 = 64/32 x oversampling 4 adchpd 0 adc high-pass filter disable: 0 = high-pass filter enabled 1 = high-pass filter disabled 7:5 adcrate[2:0] 010 adc rate control (only used when the s/pdif transmitter is the only interface sourcing the adc) 000 = 128fs 001 = 192fs 010 = 256fs 011 = 384fs 100 = 512fs 101 = 768fs 110 = 1152fs 8 vmidsel 1 vmid impedance selection 0 = high impedance, power saving 1 = low impedance, fast power-on r30 spdtxchan 0 1eh 1:0 txsrc[1:0] 10 s/pdif transmitter data source 00 = s/pdif received data (see real_through) 01 = adc digital output data. 10 = secondary audio interface 11 = audio interface received data 2 ovwchan 0 only used if txsrc==00. overwrites the ?through-path? channel bit with values determined by the channel-bit control registers. 0 = channel data equal to recovered channel data. 1 = channel data taken from channel status registers. 3 real_ through 0 s/pdif through mode control 0 = spdifop pin sources output of s/pdif transmitter 1 = spdifop pins sources output of s/pdif in mux
WM8580A production data w pd, rev 4.9, november 2013 90 register address bit label default description 4 txval_ovwr 0 s/pdif transmitter validity overwrite mode 0 = disabled, validity bit is 0 when transmitter sources adc, paif or saif, or is matches the s/pdif input validity when s/pdif transmitter sources s/pdif receiver. 1 = enabled, validity bit transmitted for subframe 0 is defined by txval_sf0, validity bit transmitted for subframe 1 is defined by txval_sf1. 5 txval_sf0 0 overwrite mode s/pdif transmitter validity sub-frame 0 0 = transmit validity = 0 1 = transmit validity = 1 6 txval_sf1 0 overwrite mode s/pdif transmitter validity sub-frame 1 0 = transmit validity = 0 1 = transmit validity = 1 r31 spdtxchan 1 1fh 0 con/pro 0 0 = consumer mode 1 = professional mode (not supported by WM8580A) 1 audio_n 0 0 = s/pdif transmitted data is audio pcm. 1 = s/pdif transmitted data is not audio pcm. 2 cpy_n 0 0 = transmitted data has copyright asserted. 1 = transmitted data has no copyright assertion. 5:3 deemph[2:0] 000 000 = data from audio interface has no pre-emphasis. 001 = data from audio interface has pre-emphasis. 010 = reserved (audio interface has pre-emphasis). 011 = reserved (audio interface has pre-emphasis). all other modes are reserved and should not be used. 7:6 chstmode [1:0] 00 00 = only valid mode for consumer applications. r32 spdtxchan 2 20h 7:0 catcode [7:0] 00000000 category code. refer to s/pdif specification for details. 00h indicates ?general? mode r33 spdtxchan 3 21h 3:0 srcnum [3:0] 0000 indicates s/pdif source number. no definitions are attached to data. 5:4 chnum1[1:0] 00 channel number for subframe 1 chnum1 channel status bits[21:20] 00 0000 = do not use channel number 01 0001 = send to left channel 10 0010 = send to right channel 11 0000 = do not use channel number 7:6 chnum2[1:0] 00 channel number for subframe 2 chnum2 channel status bits[23:22] 00 0000 = do not use channel number 01 0001 = send to left channel 10 0010 = send to right channel 11 0000 = do not use channel number r34 spdtxchan 4 22h 3:0 freq[3:0] 0001 sampling frequency indicated. refer to s/pdif specification iec60958-3 for details. 0001 = sampling frequency not indicated. 5:4 clkacu[1:0] 11 clock accuracy of transmitted clock. 00 = level ii 01 = level i 10 = level iii 11 = interface frame rate not matched to sampling frequency.
production data WM8580A w pd, rev 4.9, november 2013 91 register address bit label default description r35 spdtxchan 5 23h 0 maxwl 1 maximum audio sample word length 0 = 20 bits 1 = 24 bits 3:1 txwl[2:0] 101 audio sample word length. 000 = word length not indicated txwl[2:0] maxwl==1 maxwl== 0 001 20 bits 16 bits 010 22 bits 18 bits 100 23 bits 19 bits 101 24 bits 20 bits 110 21 bits 17 bits all other combinations reserved 7:4 orgsamp [3:0] 0000 original sampling frequency. see s/pdif specification for details. 0000 = original sampling frequency not indicated r36 spdmode 24h 0 spdifin1mode 1 selects the input circuit type for the spdifin1 input 0 = cmos-compatible input 1 = comparator input. compatible with 500mvpp ac coupled consumer s/pdif input signals as defined in iec-60958-3. 2:1 rxinsel[1:0] 00 s/pdif receiver input mux select. note that the general purpose inputs must be configured using gpoxop to be either cmos or comparator inputs if selected by rxinsel. 00 = spdifin1 01 = spdifin2 (mfp3) 10 = spdifin3 (mfp4) 11 = spdifin4 (mfp5) 6 wl_mask 0 s/pdif receiver word length truncation mask 0 = disabled, data word is truncated as described in table 66. 1 = enabled, data word is not truncated. r37 intmask 25h 8:0 mask[8:0] 000000000 when a flag is masked, it does not update the error register or contribute to the interrupt pulse. 0 = unmask, 1 = mask. mask[0] = mask control for upd_unlock mask[1] = mask control for int_invalid mask[2] = mask control for int_csud mask[3] = mask control for int_trans_err mask[4] = mask control for upd_audio_n mask[5] = mask control for upd_pcm_n mask[6] = mask control for upd_cpy_n mask[7] = mask control for upd_deemph mask[8] = mask control for upd_rec_freq
WM8580A production data w pd, rev 4.9, november 2013 92 register address bit label default description r38 gpo1 26h 3:0 gpo1op[3:0] 0000 0000 = int_n 0001 = v 0010 = u 0011 = c 0100 = p 0101 = sfrm_clk 0110 = 192blk 0111 = unlock 1000 = csud 1001 = invalid 1010 = zflag 1011 = non_audio 1100 = cpy_n 1101 = deemp 1110 = set gpo as s/pdif input (standard cmos input buffer). only applicable for gpo3/4/5. 1111 = set gpo as s/pdif input (?comparator? input for ac coupled consumer s/pdif signals). only applicable for gpo3/4/5 7:4 gpo2op[3:0] 0001 8 fillmode 0 fill mode overwrite configuration determines s/pdif receiver action when trans_err or invalid flag is masked and error condition sets the flag: 0 = data from s/pdif receiver is overwritten with last valid data sample when flag is set. 1 = data from s/pdif receiver is overwritten as all zeros when flag is set. r39 gpo2 27h 3:0 gpo3op[3:0] 0010 0000 = int_n 0001 = v 0010 = u 0011 = c 0100 = p 0101 = sfrm_clk 0110 = 192blk 0111 = unlock 1000 = csud 1001 = invalid 1010 = zflag 1011 = non_audio 1100 = cpy_n 1101 = deemp 1110 = set gpo as s/pdif input (standard cmos input buffer). only applicable for gpo3/4/5. 1111 = set gpo as s/pdif input (?comparator? input for ac coupled consumer s/pdif signals). only applicable for gpo3/4/5 7:4 gpo4op[3:0] 0011 8 alwaysvalid 0 automatic error handling configuration for invalid flag 0 = invalid flag automatic error handling enabled. 1 = invalid flag automatic error handling disabled.
production data WM8580A w pd, rev 4.9, november 2013 93 register address bit label default description r40 gpo3 28h 3:0 gpo5op[3:0] 0100 0000 = int_n 0001 = v 0010 = u 0011 = c 0100 = p 0101 = sfrm_clk 0110 = 192blk 0111 = unlock 1000 = csud 1001 = invalid 1010 = zflag 1011 = non_audio 1100 = cpy_n 1101 = deemp 1110 = set gpo as s/pdif input (standard cmos input buffer). only applicable for gpo3/4/5. 1111 = set gpo as s/pdif input (?comparator? input for ac coupled consumer s/pdif signals). only applicable for gpo3/4/5 7:4 gpo6op[3:0] 0101 r41 gpo4 29h 3:0 gpo7op[3:0] 0110 7:4 gpo8op[3:0] 0111 r42 gpo5 2ah 3:0 gpo9op[3:0] 1000 7:4 gpo10op [3:0] 1001 r43 intstat 2bh 0 upd_unlock - unlock flag update signal 0 = int_n not caused by update to unlock flag 1 = int_n caused by update to unlock flag 1 int_invalid - invalid flag interrupt signal 0 = int_n not caused by invalid flag 1 = int_n caused by invalid flag 2 int_csud - csud flag interrupt signal 0 = int_n not caused by csud flag 1 = int_n caused by csud flag 3 int_trans_err - trans_err flag interrupt signal 0 = int_n not caused by trans_err flag 1 = int_n caused by trans_err flag 4 upd_non_audio - non_audio update signal 0 = int_n not caused by update to non_audio flag 1 = int_n caused by update to non_audio flag 5 upd_cpy_n - cpy_n update signal 0 = int_n not caused by update to cpy_n flag 1 = int_n caused by update to cpy_n flag 6 upd_deemph - deemph update signal 0 = int_n not caused by update to deemph flag 1 = int_n caused by update to deemph flag 7 upd_rec_freq - rec_freq update signal 0 = int_n not caused by update to rec_freq flag 1 = int_n caused by update to rec_freq flag r44 spdrxchan 1 2c 0 con/pro - 0 = consumer mode 1 = professional mode the WM8580A is a consumer mode device. detection of professional mode may give erroneous behaviour. 1 audio_n - linear pcm identification 0 = data word represents audio pcm samples. 1 = data word does not represent audio pcm samples. 2 cpy_n - 0 = copyright is asserted for this data. 1 = copyright is not asserted for this data. 3 deemph - 0 = recovered s/pdif data has no pre-emphasis. 1 = recovered s/pdif data has pre-emphasis.
WM8580A production data w pd, rev 4.9, november 2013 94 register address bit label default description 5:4 reserved - reserved for additional de-emphasis modes. 7:6 chstmode [1:0] - 00 = only valid mode for consumer applications. r45 spdrxchan 2 2dh 7:0 catcode [7:0] - category code. refer to s/pdif specification for details. 00h indicates ?general? mode. r46 spdrxchan 3 2eh 3:0 srcnum [3:0] - indicates s/pdif source number. 5:4 chnum1[1:0] - channel number for sub-frame 1. 00 = take no account of channel number (channel 1 defaults to left dac) 01 = channel 1 to left channel 10 = channel 1 to right channel 7:6 chnum2[1:0] channel number for sub-frame 2. 00 = take no account of channel number (channel 2 defaults to left dac) 01 = channel 2 to left channel 10 = channel 2 to right channel r47 spdrxchan 4 2fh 3:0 freq[3:0] - sampling frequency indicated refer to s/pdif specification iec60958-3 for details. 0001 = sampling frequency not indicated. 5:4 clkacu[1:0] - clock accuracy of received clock. 00 = level ii 01 = level i 10 = level iii 11 = interface frame rate not matched to sampling frequency. r48 spdrxchan 5 30h 0 maxwl - maximum audio sample word length 0 = 20 bits 1 = 24 bits 3:1 rxwl[2:0] - audio sample word length. 000: word length not indicated rxwl[2:0] maxwl==1 maxwl== 0 001 20 bits 16 bits 010 22 bits 18 bits 100 23 bits 19 bits 101 24 bits 20 bits 110 21 bits 17 bits all other combinations are reserved and may give erroneous operation. data will be truncated internally when these bits are set unless wl_mask is set. 7:4 orgsamp [3:0] - original sampling frequency. see s/pdif specification for details. 0000 = original sampling frequency not indicated r49 spdstat 31h 0 audio_n - linear pcm identification 0 = data word represents audio pcm samples. 1 = data word does not represent audio pcm samples. 1 pcm_n - indicates that non-audio code (defined in iec-61937) has been detected. 0 = sync code not detected. 1 = sync code detected ? received data is not audio pcm.
production data WM8580A w pd, rev 4.9, november 2013 95 register address bit label default description 2 cpy_n - recovered channel status bit-2. 0 = copyright is asserted for this data. 1 = copyright is not asserted for this data. note this signal is inverted and will cause an interrupt on logic 0. 3 deemph - recovered channel status bit-3 0 = recovered s/pdif data has no pre-emphasis. 1 = recovered s/pdif data has pre-emphasis 5:4 rec_freq [1:0] -- indicates recovered s/pdif clock frequency: 00 = invalid 01 = 96khz / 88.2khz 10 = 48khz / 44.1khz 11 = 32khz 6 unlock - indicates that the s/pdif cloc k recovery circuit is unlocked or that the input s/pdif signal is not present. 0 = locked onto incoming s/pdif stream. 1 = not locked to the incoming s/pdif stream or the incoming s/pdif stream is not present. r50 pwrdn 1 32h 0 pwdn 0 chip powerdown control (works in tandem with the other powerdown registers): 0 = all digital circuits running, outputs are active 1 = all digital circuits in power save mode, outputs muted 1 adcpd 1 adc powerdown: 0 = adc enabled 1 = adc disabled 4:2 dacpd[2:0] 111 dac powerdowns (0 = dac enabled, 1 = dac disabled) dacpd[0] = dac1 dacpd[1] = dac2 dacpd[2] = dac3 6 alldacpd 1 overrides dacpd[3:0] 0 = dacs under control of dacpd[3:0] 1= all dacs are disabled. r51 pwrdn 2 33h 0 oscpd 0 osc power down 0 = osc enabled 1 = osc disabled 1 pllapd 1 0 = plla enabled 1 = plla disabled 2 pllbpd 1 0 = pllb enable 1 = pllb disable 3 spdifpd 1 s/pdif clock recovery powerdown 0 = s/pdif enabled 1 = s/pdif disabled 4 spdiftxd 1 s/pdif transmitter powerdown 0 = s/pdif transmitter enabled 1 = s/pdif transmitter disabled 5 spdifrxd 1 s/pdif receiver powerdown 0 = s/pdif receiver enabled 1 = s/pdif receiver disabled
WM8580A production data w pd, rev 4.9, november 2013 96 register address bit label default description r52 readback 34h 2:0 readmux [2:0] 000 determines which status register is to be read back: 000 = error register 001 = channel status register 1 010 = channel status register 2 011 = channel status register 3 100 = channel status register 4 101 = channel status register 5 110 = s/pdif status register 3 contread 0 continuous read enable. 0 = continuous read-back mode disabled 1 = continuous read-back mode enabled 4 readen 0 read-back mode enable. 0 = read-back mode disabled 1 = read-back mode enabled r53 reset 35h 8:0 reset n/a writing to this register will apply a reset to the device registers.
production data WM8580A w pd, rev 4.9, november 2013 97 digital filter characteristics parameter test conditions min typ max unit adc filter passband ? 0.01 db 0 0.4535fs -6db 0.5fs passband ripple ? 0.01 db stopband 0.5465fs stopband attenuation f > 0.5465fs -65 db dac filter passband ? 0.05 db 0.444fs -3db 0.487fs passband ripple ? 0.05 db stopband 0.555fs stopband attenuation f > 0.555fs -60 db table 83 digital filter characteristics
WM8580A production data w pd, rev 4.9, november 2013 98 dac filter responses -120 -100 -80 -60 -40 -20 0 0 0.5 1 1.5 2 2.5 3 response (db) frequency (fs) -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 response (db) frequency (fs) figure 43 dac digital filter frequency response ? 44.1, 48 and 96khz figure 44 dac digital filter ripple ?44.1, 48 and 96khz -80 -60 -40 -20 0 0 0.2 0.4 0.6 0.8 1 response (db) frequency (fs) -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 response (db) frequency (fs) figure 45 dac digital filter frequency response ? 192khz figure 46 dac digital filter ripple ? 192khz
production data WM8580A w pd, rev 4.9, november 2013 99 digital de-emphasis characteristics -10 -8 -6 -4 -2 0 0 5 10 15 20 response (db) frequency (khz) -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0 5 10 15 20 response (db) frequency (khz) figure 47 de-emphasis frequency response (44.1khz) figure 48 de-emphasis error (44.1khz) -10 -8 -6 -4 -2 0 0 5 10 15 20 response (db) frequency (khz) -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 0 5 10 15 20 response (db) frequency (khz) figure 49 de-emphasis frequency response (48khz) figure 50 de-emphasis error (48khz) adc filter responses -80 -60 -40 -20 0 0 0.5 1 1.5 2 2.5 3 response (db) frequency (fs) -0.02 -0.015 -0.01 -0.005 0 0.005 0.01 0.015 0.02 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 response (db) frequency (fs) figure 51 adc digital filter frequency response figure 52 adc digital filter ripple
WM8580A production data w pd, rev 4.9, november 2013 100 adc high pass filter the WM8580A has a selectable digital high pass filter to remo ve dc offsets. the filter response is characterised by the following polynomial. figure 53 adc highpass filter response 1 - z -1 1 - 0.9995z -1 h(z) = -15 -10 -5 0 0 0.0005 0.001 0.0015 0.002 response (db) frequency (fs)
production data WM8580A w pd, rev 4.9, november 2013 101 applications information recommended external components figure 54 recommended external components
WM8580A production data w pd, rev 4.9, november 2013 102 WM8580Ageft/v notes: 1. if separate ground planes are used, they should be joined as close as possible to the WM8580A. 2. c2, c4-6, c19 & c21 should be positioned as close as possible to the WM8580A. 3. the 10uf and 0.1uf de-coupling combination may be replaced with a single 4.7uf capacitor in systems where power supply noise is minimal. 4. avdd & pvdd may be tied together, but for optimum performance it is recommended that they are kept separate. 5. only one mfp configuration is shown and others are possible. refer to ?multi-function pin configuration? diagram. 6. r1 and r2 are optional figure 55 recommended external components
production data WM8580A w pd, rev 4.9, november 2013 103 package dimensions notes: a. all linear dimensions are in millimeters. b. this drawing is subject to change without notice. c. body dimensions do not include mold flash or protrusion, not to exceed 0.25mm. d. meets jedec.95 ms-026, variation = abc. refer to this specification for further details. dm004.c ft: 48 pin tqfp (7 x 7 x 1.0 mm) symbols dimensions (mm) min nom max a ----- ----- 1.20 a 1 0.05 ----- 0.15 a 2 0.95 1.00 1.05 b 0.17 0.22 0.27 c 0.09 ----- 0.20 d 9.00 bsc d 1 7.00 bsc e 9.00 bsc e 1 7.00 bsc e 0.50 bsc l 0.45 0.60 0.75 ? 0 o 3.5 o 7 o tolerances of form and position ccc 0.08 ref: jedec.95, ms-026 25 36 e b 12 1 d1 d e1 e 13 24 37 48 a a2 a1 seating plane ccc c -c- ? c l
WM8580A production data w pd, rev 4.9, november 2013 104 important notice wolfson microelectronics plc (?wolfson?) products and services are sold subject to wolfson?s terms and conditions of sale, delivery and payment supplied at the time of order acknowledgement. wolfson warrants performance of its products to the specific ations in effect at the date of shipment. wolfson reserves the right to make changes to its products and specifications or to discontinue any product or service without notice. customers should therefore obtain the latest version of relevant informati on from wolfson to verify that the information is current. testing and other quality control techniques are utilised to the extent wolfson deems necessary to support its warranty. specific testing of all parameters of each device is not nece ssarily performed unless required by law or regulation. in order to minimise risks associated with customer applications, the customer must use adequate design and operating safeguards to minimise inherent or procedural hazards. wolfs on is not liable for applications assistance or customer product design. the customer is solely responsible for its selection and use of wolfson products. wolfson is not liable for such selection or use nor for use of any circuitry other than circuitry entirely embodied in a wolfson product. wolfson?s products are not intended for use in life support sy stems, appliances, nuclear systems or systems where malfunction can reasonably be expected to result in personal injury, death or severe property or environmental damage. any use of products by the customer for such purposes is at the customer?s own risk. wolfson does not grant any licence (express or implied) under any patent right, copyright, mask work right or other intellectual property right of wolfson covering or relating to any combination, machine, or process in which its products or services might be or are used. any provision or publication of any third party?s products or services does not constitute wolfson?s approval, licence, warranty or endorsement thereof. any third party trade marks contained in this document belong to the respective third party owner. reproduction of information from wolfson datasheets is per missible only if reproduction is without alteration and is accompanied by all associated copyright, proprietary and other noti ces (including this notice) and conditions. wolfson is not liable for any unauthorised alteration of such information or for any reliance placed thereon. any representations made, warranties given, and/or liabilities accepted by any person which differ from those contained in this datasheet or in wolfson?s standard terms and conditions of sale, delivery and payment are made, given and/or accepted at that person?s own risk. wolfson is not liable for any such representations, warranties or liabilities or for any reliance placed thereon by any person. the product described in this datasheet incorporates clocking technology that has been licensed from sonopsis ltd. which is protected by patents including ep1611684b1 and us7495515. additional patent applications are pending. address: wolfson microelectronics plc westfield house 26 westfield road edinburgh eh11 2qb united kingdom tel :: +44 (0)131 272 7000 fax :: +44 (0)131 272 7001 email :: sales@wolfsonmicro.com
production data WM8580A w pd, rev 4.9, november 2013 105 revision history date rev description of changes changed by 04/06/13 4.8 updated to show part as WM8580A throughout the datasheet. jmacd 23/10/13 4.9 recommended external component diagrams: note 4 corrected (dvdd changed to avdd) jmacd
mouser electronics authorized distributor click to view pricing, inventory, delivery & lifecycle information: wolfson microelectronics: ? wm8580-6122-ft48-ev1


▲Up To Search▲   

 
Price & Availability of WM8580A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X